m
This commit is contained in:
38
volumes/conf.d/mtail.zinomedia.de.conf
Normal file
38
volumes/conf.d/mtail.zinomedia.de.conf
Normal file
@@ -0,0 +1,38 @@
|
||||
server {
|
||||
listen *:443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name mtail.zinomedia.de;
|
||||
|
||||
access_log off;
|
||||
error_log /var/log/nginx/error.log error;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/mtail.zinomedia.de/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/mtail.zinomedia.de/privkey.pem;
|
||||
|
||||
include "snippets/ssl-optimizations.conf";
|
||||
|
||||
location / {
|
||||
resolver 127.0.0.11;
|
||||
set $upstream "mtail:3903";
|
||||
|
||||
# Password protect
|
||||
auth_basic "Protected";
|
||||
auth_basic_user_file /usr/share/nginx/html/mtail.zinomedia.de/.htpasswd;
|
||||
|
||||
proxy_set_header X-Forwarded-Host $host:$server_port;
|
||||
proxy_set_header X-Forwarded-Server $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_http_version 1.1;
|
||||
proxy_read_timeout 300s;
|
||||
|
||||
proxy_pass http://$upstream;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
server_name mtail.zinomedia.de;
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
Reference in New Issue
Block a user