Kaynağa Gözat

Set forwarded header

Bob Mottram 8 yıl önce
ebeveyn
işleme
ec8a379e1d
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 5
    5
      src/freedombone-app-matrix

+ 5
- 5
src/freedombone-app-matrix Dosyayı Görüntüle

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