modified
This commit is contained in:
32
volumes/conf.d/vouch.armos.zinomedia.de.conf
Normal file
32
volumes/conf.d/vouch.armos.zinomedia.de.conf
Normal file
@@ -0,0 +1,32 @@
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name vouch.armos.zinomedia.de;
|
||||
|
||||
access_log off;
|
||||
error_log /var/log/nginx/error.log error;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/vouch.armos.zinomedia.de/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/vouch.armos.zinomedia.de/privkey.pem;
|
||||
|
||||
# SSL Optimizations
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_session_cache shared:SSL:10m;
|
||||
ssl_session_timeout 10m;
|
||||
|
||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||
|
||||
location / {
|
||||
resolver 127.0.0.11;
|
||||
set $upstream "http://vouch:9090";
|
||||
|
||||
proxy_pass $upstream;
|
||||
proxy_set_header Host $http_host; # be sure to pass the original host header
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name vouch.armos.zinomedia.de;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
Reference in New Issue
Block a user