Reputation: 11921
I would like to have my drone installation running behind my nginx server. I want to access it under http://host/drone
, but it doesn't seem to get the path option.
My nginx config looks like this:
server {
listen 80;
server_name myhost.io;
location ~ ^/drone/(.*)$ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://localhost:8042/$1;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
And my configuration file like this:
DRONED_OPTS="--port=:8042 --path='/drone'"
Thanks for your help!
Upvotes: 2
Views: 791
Reputation: 11921
As Brad Rydzewski figured out, the --path option is only for the path to the sqlite database and drone can't be run in a subtree.
Upvotes: 2