Simplify proxy pass
This commit is contained in:
@@ -34,8 +34,7 @@ server {
|
|||||||
}
|
}
|
||||||
location @crawler {
|
location @crawler {
|
||||||
proxy_pass http://fachschaften:8080;
|
proxy_pass http://fachschaften:8080;
|
||||||
proxy_set_header Host $host;
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ server {
|
|||||||
}
|
}
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://fachschaften.local:3000;
|
proxy_pass http://fachschaften.local:3000;
|
||||||
proxy_set_header Host $host;
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,8 +25,7 @@ server {
|
|||||||
index index.php;
|
index index.php;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://192.168.95.22;
|
proxy_pass http://192.168.95.22;
|
||||||
proxy_set_header Host $host;
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_request_buffering off;
|
proxy_request_buffering off;
|
||||||
client_body_buffer_size 32K;
|
client_body_buffer_size 32K;
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ server {
|
|||||||
|
|
||||||
location /etherpad {
|
location /etherpad {
|
||||||
proxy_pass http://192.168.95.11:3333;
|
proxy_pass http://192.168.95.11:3333;
|
||||||
proxy_set_header Host $host;
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,8 +49,7 @@ server {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://192.168.95.11:3333;
|
proxy_pass http://192.168.95.11:3333;
|
||||||
proxy_set_header Host $host;
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
}
|
||||||
location ~ ^/(alt|twiki) {
|
location ~ ^/(alt|twiki) {
|
||||||
return 302 https://www.alt.fet.at$request_uri;
|
return 302 https://www.alt.fet.at$request_uri;
|
||||||
|
|||||||
@@ -19,5 +19,6 @@ server {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://zyklon:3000;
|
proxy_pass http://zyklon:3000;
|
||||||
|
include snippets/proxy_header.conf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,11 +55,8 @@ server {
|
|||||||
# rewrite ^/wp/(.*)$ /$1 break;
|
# rewrite ^/wp/(.*)$ /$1 break;
|
||||||
# return 301 http://$host$request_uri;
|
# return 301 http://$host$request_uri;
|
||||||
proxy_pass http://triamp;
|
proxy_pass http://triamp;
|
||||||
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_set_header Accept-Encoding "";
|
||||||
proxy_set_header Host www.onetufree.at;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X_FORWARDED_SSL on;
|
|
||||||
proxy_set_header HTTP_X_FORWARDED_SSL on;
|
|
||||||
proxy_redirect default;
|
proxy_redirect default;
|
||||||
|
|
||||||
# more_set_headers 'Link: <https://wp.triton.fet.at/index.php/wp-json/>; rel="https://api.w.org/", <https://wp.triton.fet.at/>; rel=shortlink'
|
# more_set_headers 'Link: <https://wp.triton.fet.at/index.php/wp-json/>; rel="https://api.w.org/", <https://wp.triton.fet.at/>; rel=shortlink'
|
||||||
|
|||||||
@@ -23,10 +23,8 @@ server {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://triampsql;
|
proxy_pass http://triampsql;
|
||||||
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_set_header Accept-Encoding "";
|
||||||
proxy_set_header Host sql.triton.fet.at;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X_FORWARDED_SSL on;
|
|
||||||
proxy_redirect default;
|
proxy_redirect default;
|
||||||
|
|
||||||
# force https Links
|
# force https Links
|
||||||
|
|||||||
@@ -40,19 +40,16 @@ server {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://mogok.local:3001;
|
proxy_pass http://mogok.local:3001;
|
||||||
proxy_set_header Host $host;
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
}
|
||||||
location /tc {
|
location /tc {
|
||||||
rewrite ^/tc/(.*)$ /$1 break;
|
rewrite ^/tc/(.*)$ /$1 break;
|
||||||
proxy_pass http://triton-amp.local:8080;
|
proxy_pass http://triton-amp.local:8080;
|
||||||
proxy_set_header Host $host;
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
}
|
||||||
location /conf {
|
location /conf {
|
||||||
rewrite ^/conf/(.*)$ /$1 break;
|
rewrite ^/conf/(.*)$ /$1 break;
|
||||||
proxy_pass http://mogok.local:8001;
|
proxy_pass http://mogok.local:8001;
|
||||||
proxy_set_header Host $host;
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,19 +40,16 @@ server {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://mogok.local:3002;
|
proxy_pass http://mogok.local:3002;
|
||||||
proxy_set_header Host $host;
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
}
|
||||||
location /tc {
|
location /tc {
|
||||||
rewrite ^/tc/(.*)$ /$1 break;
|
rewrite ^/tc/(.*)$ /$1 break;
|
||||||
proxy_pass http://triton-amp.local:8080;
|
proxy_pass http://triton-amp.local:8080;
|
||||||
proxy_set_header Host $host;
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
}
|
||||||
location /conf {
|
location /conf {
|
||||||
rewrite ^/conf/(.*)$ /$1 break;
|
rewrite ^/conf/(.*)$ /$1 break;
|
||||||
proxy_pass http://mogok.local:8001;
|
proxy_pass http://mogok.local:8001;
|
||||||
proxy_set_header Host $host;
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,12 +29,8 @@ server {
|
|||||||
# rewrite ^/wp/(.*)$ /$1 break;
|
# rewrite ^/wp/(.*)$ /$1 break;
|
||||||
# return 301 http://$host$request_uri;
|
# return 301 http://$host$request_uri;
|
||||||
proxy_pass http://triamp2;
|
proxy_pass http://triamp2;
|
||||||
|
include snippets/proxy_header.conf;
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_set_header Accept-Encoding "";
|
||||||
proxy_set_header Host wp2.triton.fet.at;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X_FORWARDED_SSL on;
|
|
||||||
proxy_set_header REQUEST_SCHEME https;
|
|
||||||
proxy_set_header HTTP_X_FORWARDED_SSL on;
|
|
||||||
proxy_redirect default;
|
proxy_redirect default;
|
||||||
|
|
||||||
# more_set_headers 'Link: <https://wp.triton.fet.at/index.php/wp-json/>; rel="https://api.w.org/", <https://wp.triton.fet.at/>; rel=shortlink'
|
# more_set_headers 'Link: <https://wp.triton.fet.at/index.php/wp-json/>; rel="https://api.w.org/", <https://wp.triton.fet.at/>; rel=shortlink'
|
||||||
|
|||||||
Reference in New Issue
Block a user