ansible-edda/playbooks/files/services/deploy/lrproxy/nginx-conf.d/music.thenineworlds.net.conf
2023-08-16 23:21:11 +02:00

38 lines
935 B
Plaintext

server {
listen [::]:80;
listen 80;
server_name music.thenineworlds.net;
location ^~ /.well-known {
allow all;
root /var/www/html;
}
location / {
return 301 https://$server_name$request_uri;
}
}
server {
listen [::1]:443 ssl;
listen 127.0.0.1:443 ssl;
server_name music.thenineworlds.net;
ssl_certificate /etc/letsencrypt/live/music.thenineworlds.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/music.thenineworlds.net/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/music.thenineworlds.net/chain.pem;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://pod-music;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}