Question

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!

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top