mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 13:01:35 -07:00
Codereview impl
This commit is contained in:
parent
32ae405b04
commit
2e9c8b5b8c
1 changed files with 0 additions and 11 deletions
|
@ -10,9 +10,6 @@ server {
|
||||||
|
|
||||||
server_name nexusoss.*;
|
server_name nexusoss.*;
|
||||||
|
|
||||||
# allow large uploads of files - refer to nginx documentation
|
|
||||||
client_max_body_size 1G;
|
|
||||||
|
|
||||||
include /config/nginx/ssl.conf;
|
include /config/nginx/ssl.conf;
|
||||||
|
|
||||||
# enable for ldap auth (requires ldap-location.conf in the location block)
|
# enable for ldap auth (requires ldap-location.conf in the location block)
|
||||||
|
@ -44,10 +41,6 @@ server {
|
||||||
set $upstream_port 8081;
|
set $upstream_port 8081;
|
||||||
set $upstream_proto http;
|
set $upstream_proto http;
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location /v2/ {
|
location /v2/ {
|
||||||
|
@ -70,9 +63,5 @@ server {
|
||||||
set $upstream_port 8082;
|
set $upstream_port 8082;
|
||||||
set $upstream_proto http;
|
set $upstream_proto http;
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue