Skip to content

Conversation

@LoayAhmed304
Copy link
Member

@LoayAhmed304 LoayAhmed304 commented Nov 3, 2025

Note that staging nginx config file is the latest one, the production is not touched for a while now

@LoayAhmed304
Copy link
Member Author

Task linked: CU-869b1p50h Push config files

location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $http_x_real_ip;
Copy link
Member

Choose a reason for hiding this comment

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

This is a header and it can be empty .. make same like as production to be remote_addr

proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $http_x_real_ip;
proxy_set_header X-Forwarded-For $http_x_real_ip;
Copy link
Member

Choose a reason for hiding this comment

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

same comment

Copy link
Member Author

Choose a reason for hiding this comment

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

This is an attempt to forward the header that the frontend will set

@AhmedSobhy01 AhmedSobhy01 merged commit f35934a into dev Nov 3, 2025
1 check passed
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