harness-drone/doc/setup-nginx.md
2015-05-23 18:52:04 -07:00

762 B
Raw Blame History

Using a proxy server is not really necessary. Drone serves most static content from a CDN and uses the Go standard librarys high-performance net/http package to serve dynamic content. If using Nginx to proxy traffic to Drone you may use the following configuration:

location / {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Host $http_host;
    proxy_set_header Origin "";

    proxy_pass http://127.0.0.1:8000;
    proxy_redirect off;
}

You may also want to change Drones default port when proxying traffic. You can change the port in the /etc/drone/drone.toml configuration file:

[server]
addr = ":8000"