m
This commit is contained in:
@@ -4,14 +4,18 @@ map $http_upgrade $connection_upgrade {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl;
|
||||||
server_name etherpad.zinomedia.de;
|
server_name etherpad.zinomedia.de;
|
||||||
|
|
||||||
|
access_log off;
|
||||||
|
error_log /var/log/nginx/error.log error;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/etherpad.zinomedia.de/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/etherpad.zinomedia.de/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/etherpad.zinomedia.de/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/etherpad.zinomedia.de/privkey.pem;
|
||||||
|
|
||||||
# (optional) basic auth
|
include "snippets/ssl-optimizations.conf";
|
||||||
|
|
||||||
auth_basic "Protected";
|
auth_basic "Protected";
|
||||||
auth_basic_user_file /usr/share/nginx/html/etherpad.zinomedia.de/.htpasswd;
|
auth_basic_user_file /usr/share/nginx/html/etherpad.zinomedia.de/.htpasswd;
|
||||||
|
|
||||||
@@ -37,7 +41,10 @@ server {
|
|||||||
rewrite /robots.txt /robots.txt break;
|
rewrite /robots.txt /robots.txt break;
|
||||||
rewrite /(.*) /p/$1;
|
rewrite /(.*) /p/$1;
|
||||||
|
|
||||||
proxy_pass http://etherpad:9001;
|
resolver 127.0.0.11;
|
||||||
|
set $upstream "http://etherpad:9001";
|
||||||
|
proxy_pass $upstream;
|
||||||
|
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_pass_header Server;
|
proxy_pass_header Server;
|
||||||
|
|||||||
Reference in New Issue
Block a user