|
@@ -54,29 +54,29 @@ function matrix_nginx {
|
54
|
54
|
matrix_identityserver_proxy_str=' \
|
55
|
55
|
location /matrixid { \
|
56
|
56
|
proxy_pass http://localhost:8081; \
|
57
|
|
- proxy_buffering on; \
|
|
57
|
+ proxy_set_header X-Forwarded-For $remote_addr; \
|
58
|
58
|
}'
|
59
|
59
|
matrix_proxy_str=' \
|
60
|
60
|
location /matrix { \
|
61
|
61
|
proxy_pass https://localhost:8448; \
|
62
|
|
- proxy_buffering on; \
|
|
62
|
+ proxy_set_header X-Forwarded-For $remote_addr; \
|
63
|
63
|
}'
|
64
|
64
|
turn_proxy_str=' \
|
65
|
65
|
location /turn { \
|
66
|
66
|
proxy_pass https://localhost:3478; \
|
67
|
|
- proxy_buffering on; \
|
|
67
|
+ proxy_set_header X-Forwarded-For $remote_addr; \
|
68
|
68
|
}'
|
69
|
69
|
|
70
|
70
|
if [[ $ONION_ONLY != 'no' ]]; then
|
71
|
71
|
matrix_proxy_str=' \
|
72
|
72
|
location /matrix { \
|
73
|
73
|
proxy_pass http://localhost:8448; \
|
74
|
|
- proxy_buffering on; \
|
|
74
|
+ proxy_set_header X-Forwarded-For $remote_addr; \
|
75
|
75
|
}'
|
76
|
76
|
turn_proxy_str=' \
|
77
|
77
|
location /turn { \
|
78
|
78
|
proxy_pass http://localhost:3478; \
|
79
|
|
- proxy_buffering on; \
|
|
79
|
+ proxy_set_header X-Forwarded-For $remote_addr; \
|
80
|
80
|
}'
|
81
|
81
|
fi
|
82
|
82
|
|