reverse proxy config for shaarli

This commit is contained in:
JOduMonT 2020-02-04 21:07:32 +07:00
commit e226c9223c
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,17 @@
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name shaarli.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_shaarli shaarli;
proxy_pass http://$upstream_shaarli:80;
}
}

View file

@ -0,0 +1,17 @@
location /shaarli {
return 301 $scheme://$host/shaarli/;
}
location ^~ /shaarli/ {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_shaarli shaarli;
rewrite /shaarli(.*) $1 break;
proxy_pass http://$upstream_shaarli:80;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
proxy_set_header Connection $http_connection;
proxy_redirect off;
proxy_ssl_session_reuse off;
}