TracksApp / tracks

Tracks is a GTD™ web application, built with Ruby on Rails

Home Page:https://www.getontracks.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reverse Proxy Config info

GettingTechnicl opened this issue · comments

Hello, I'm having issue setting up Tracks to work through my nginx docker.

Tracks is working properly at IP:3000, however I want this behind my existing nginx configuration.

What I currently have in place and it is not working is

location /tracks {
return 301 $scheme://$host/tracks/;
}

location ^~ /tracks/ {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
proxy_pass http://xxx.xxx.xxx.xxx:3000/;
rewrite /login(.*) $1 break;
}

if ($http_referer ~* /tracks) {
rewrite ^/login /login/$1? redirect;
}

When accessing the page at domain.com/tracks it changes the url to domain.com/login and shows me splash screen to my webserver as if I hit a webpage that does not exist.

Any help is appreciated. Thanks

Despite whatever settings I tried in site.yml I could not get this to work and resorted to using a subdomain, e.g. tracks.domain.com.