mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 04:51:33 -07:00
Cleanups
This commit is contained in:
parent
fda885d4c3
commit
20fe3752cb
19 changed files with 59 additions and 105 deletions
|
@ -29,12 +29,12 @@ server {
|
|||
#include /config/nginx/authelia-location.conf;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
proxy_buffering off;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app boinc;
|
||||
set $upstream_port 8080;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_buffering off;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,7 +35,6 @@ server {
|
|||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Scheme $scheme;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,13 +16,13 @@ location ^~ /calibre-web/ {
|
|||
# enable for Authelia, also enable authelia-server.conf in the default site config
|
||||
#include /config/nginx/authelia-location.conf;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app calibre-web;
|
||||
set $upstream_port 8083;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Scheme $scheme;
|
||||
proxy_set_header X-Script-Name /calibre-web;
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@ server {
|
|||
# enable for Authelia
|
||||
#include /config/nginx/authelia-location.conf;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app calibre;
|
||||
set $upstream_port 8080;
|
||||
|
|
|
@ -16,6 +16,7 @@ location ^~ /calibre/ {
|
|||
# enable for Authelia, also enable authelia-server.conf in the default site config
|
||||
#include /config/nginx/authelia-location.conf;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app calibre;
|
||||
set $upstream_port 8080;
|
||||
|
|
|
@ -8,71 +8,32 @@ server {
|
|||
|
||||
include /config/nginx/ssl.conf;
|
||||
|
||||
# static files
|
||||
location ^~ /loleaflet {
|
||||
client_max_body_size 0;
|
||||
|
||||
# enable for ldap auth, fill in ldap details in ldap.conf
|
||||
#include /config/nginx/ldap.conf;
|
||||
|
||||
# enable for Authelia
|
||||
#include /config/nginx/authelia-server.conf;
|
||||
|
||||
location / {
|
||||
# enable the next two lines for http auth
|
||||
#auth_basic "Restricted";
|
||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||
|
||||
# enable the next two lines for ldap auth
|
||||
#auth_request /auth;
|
||||
#error_page 401 =200 /ldaplogin;
|
||||
|
||||
# enable for Authelia
|
||||
#include /config/nginx/authelia-location.conf;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app collabora;
|
||||
set $upstream_port 9980;
|
||||
set $upstream_proto https;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
}
|
||||
|
||||
# WOPI discovery URL
|
||||
location ^~ /hosting/discovery {
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app collabora;
|
||||
set $upstream_port 9980;
|
||||
set $upstream_proto https;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
}
|
||||
|
||||
# Capabilities
|
||||
location ^~ /hosting/capabilities {
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app collabora;
|
||||
set $upstream_port 9980;
|
||||
set $upstream_proto https;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
}
|
||||
|
||||
# main websocket
|
||||
location ~ ^/lool/(.*)/ws$ {
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app collabora;
|
||||
set $upstream_port 9980;
|
||||
set $upstream_proto https;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_read_timeout 36000s;
|
||||
}
|
||||
|
||||
# download, presentation and image upload
|
||||
location ~ ^/lool {
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app collabora;
|
||||
set $upstream_port 9980;
|
||||
set $upstream_proto https;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
}
|
||||
|
||||
# Admin Console websocket
|
||||
location ^~ /lool/adminws {
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app collabora;
|
||||
set $upstream_port 9980;
|
||||
set $upstream_proto https;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_read_timeout 36000s;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,13 +17,13 @@ location ^~ /dozzle/ {
|
|||
#include /config/nginx/authelia-location.conf;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
chunked_transfer_encoding off;
|
||||
proxy_buffering off;
|
||||
proxy_cache off;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app dozzle;
|
||||
set $upstream_port 8080;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
chunked_transfer_encoding off;
|
||||
proxy_buffering off;
|
||||
proxy_cache off;
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@ server {
|
|||
# enable for Authelia
|
||||
#include /config/nginx/authelia-location.conf;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app duplicati;
|
||||
set $upstream_port 8200;
|
||||
|
|
|
@ -16,6 +16,7 @@ location ^~ /duplicati/ {
|
|||
# enable for Authelia, also enable authelia-server.conf in the default site config
|
||||
#include /config/nginx/authelia-location.conf;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app duplicati;
|
||||
set $upstream_port 8200;
|
||||
|
|
|
@ -29,12 +29,12 @@ server {
|
|||
#include /config/nginx/authelia-location.conf;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
proxy_buffering off;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app guacamole;
|
||||
set $upstream_port 8080;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_buffering off;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,12 +17,12 @@ location ^~ /guacamole/ {
|
|||
#include /config/nginx/authelia-location.conf;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
proxy_buffering off;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app guacamole;
|
||||
set $upstream_port 8080;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_buffering off;
|
||||
rewrite /guacamole(.*) $1 break;
|
||||
}
|
||||
|
|
|
@ -17,20 +17,18 @@ location ^~ /jenkins/ {
|
|||
# enable for Authelia, also enable authelia-server.conf in the default site config
|
||||
#include /config/nginx/authelia-location.conf;
|
||||
|
||||
# This is the maximum upload size
|
||||
client_max_body_size 10m;
|
||||
|
||||
sendfile off;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
proxy_max_temp_file_size 0;
|
||||
proxy_temp_file_write_size 64k;
|
||||
proxy_request_buffering off;
|
||||
proxy_buffering off;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app jenkins;
|
||||
set $upstream_port 8080;
|
||||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
# This is the maximum upload size
|
||||
client_max_body_size 10m;
|
||||
sendfile off;
|
||||
proxy_max_temp_file_size 0;
|
||||
proxy_temp_file_write_size 64k;
|
||||
proxy_request_buffering off;
|
||||
proxy_buffering off;
|
||||
}
|
||||
|
|
|
@ -33,7 +33,6 @@ location ^~ /nextcloud/ {
|
|||
|
||||
rewrite /nextcloud(.*) $1 break;
|
||||
proxy_max_temp_file_size 2048m;
|
||||
|
||||
proxy_set_header Range $http_range;
|
||||
proxy_set_header If-Range $http_if_range;
|
||||
proxy_redirect off;
|
||||
|
|
|
@ -21,6 +21,7 @@ location ~ /auth-([0-9]+) {
|
|||
set $upstream_auth_port 80;
|
||||
set $upstream_auth_proto http;
|
||||
proxy_pass $upstream_auth_proto://$upstream_auth_app:$upstream_auth_port/api/?v1/auth&group=$1;
|
||||
|
||||
proxy_set_header Content-Length "";
|
||||
|
||||
# Do not uncomment the lines below, these are examples for usue in other proxy configs
|
||||
|
|
|
@ -35,7 +35,5 @@ server {
|
|||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,4 @@ location ^~ /sickchill {
|
|||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ server {
|
|||
# enable for Authelia
|
||||
#include /config/nginx/authelia-location.conf;
|
||||
|
||||
include /config/nginx/proxy.conf;
|
||||
resolver 127.0.0.11 valid=30s;
|
||||
set $upstream_app tt-rss;
|
||||
set $upstream_port 80;
|
||||
|
@ -36,9 +37,5 @@ server {
|
|||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_redirect http://$upstream_app:80 /;
|
||||
proxy_read_timeout 60s;
|
||||
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