Skip to content

Commit 1ce5a1b

Browse files
committed
Add missing ngnix proxied headers to sample config
Fixes #133
1 parent 6893d2a commit 1ce5a1b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

contrib/uwsgi-sogs-proxied-socket.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
# server_name mysite.com; # add _ here to make it the default if this is the only site being served
2222
# location / {
2323
# proxy_set_header X-Real-IP $remote_addr;
24+
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
25+
# proxy_set_header Host $host;
2426
# include /etc/nginx/uwsgi_params;
2527
# uwsgi_pass unix:///home/USER/session-pysogs/sogs.wsgi;
2628
# }

contrib/uwsgi-sogs-proxied.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#
2929
# location / {
3030
# proxy_set_header X-Real-IP $remote_addr;
31+
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
32+
# proxy_set_header Host $host;
3133
# proxy_pass http://127.3.2.1:4242$request_uri;
3234
# }
3335
#

0 commit comments

Comments
 (0)