m
This commit is contained in:
27
volumes/conf.d/ha.zinomedia.de.conf
Normal file
27
volumes/conf.d/ha.zinomedia.de.conf
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
server_name ha.zinomedia.de;
|
||||||
|
|
||||||
|
ssl_certificate /etc/letsencrypt/live/ha.zinomedia.de/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/ha.zinomedia.de/privkey.pem;
|
||||||
|
|
||||||
|
include "snippets/ssl-optimizations.conf";
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://host.docker.internal:8123/;
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Frame-Options SAMEORIGIN;
|
||||||
|
proxy_set_header X-Content-Type-Options nosniff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name ha.zinomedia.de;
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user