Open klaertus opened 1 year ago
Hi @klaertus, could you try to do one of the following things:
proxy_set_header X-Scheme $scheme;
directive to Script server nging configurationYou can try either 1 or 2. Or both of them together.
To be honest my network/protocol knowledge is not very high, and I don't know how those redirects are supposed to work, so I don't have clear understanding, how nginx handles those (and why it doesn't substitute paths properly)
Hello @bugy,
Just changing the code like https://github.com/bugy/script-server/issues/640#issuecomment-1485589667 solved my problem.
Thanks !
Thanks for confirming @klaertus. Did you try setting X-Scheme
?
Yes, but whether I set it or not didn't make any difference.
I see, thanks!
I have an issue with my configuration and Nginx. I have a server with multiple Docker containers running different web applications. Let's say the server domain name is examplescriptserver.com. I also have an Nginx reverse proxy installed directly on the server (not in a Docker container) that routes to these applications, such as code-server, and it works well. However, I'm having an issue with script-server when it's in a Docker container (when it's installed directly on the server, it works fine). When I'm accesing to https://examplescriptserver.com/example1/, I get redirected to127.0.0.1:5000/index.html.
I've also tried changing the proxy_pass to the docker's internal ip (172.0.18.2), but in this case, it redirects me to that ip.
Here's my server configuration
My Nginx configuration:
And my Docker Compose file for Script-server is:
Thanks for any help