Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse Proxy Config info #2848

Open
GettingTechnicl opened this issue Oct 11, 2022 · 1 comment
Open

Reverse Proxy Config info #2848

GettingTechnicl opened this issue Oct 11, 2022 · 1 comment

Comments

@GettingTechnicl
Copy link

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

@hoclun-rigsep
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants