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

fix: nginx reverse proxy example #139

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abmusse
Copy link
Member

@abmusse abmusse commented Aug 15, 2023

use variable instead of string literal

@ThePrez
I believe the intention here is to refer back the node_severs variable right?

use variable instead of string literal
@abmusse abmusse requested a review from ThePrez August 15, 2023 17:18
@abmusse abmusse marked this pull request as ready for review January 8, 2024 17:45
@@ -102,7 +102,7 @@ http {
ssl_session_cache shared:SSL:50m;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://node_servers;
proxy_pass http://$node_servers;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is right. Our NGINX configs use the syntax without the $ and it all works fine. There seems to be some differences in how proxy_pass works with and without variables too. I'm having trouble finding anything definitive here, though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see if things are working fine no need to make the change then.

IIRC I was setting up a reverse proxy locally on Linux and used this as a guide to get it setup. Things were not working properly for me at the time until I put the $ in for the variable. That is what prompted me to open this PR.

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

Successfully merging this pull request may close these issues.

2 participants