You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1004 B
Plaintext
32 lines
1004 B
Plaintext
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name airsonic.ovalwonder.com;
|
|
|
|
location / {
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
proxy_http_version 1.1;
|
|
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 https;
|
|
proxy_set_header X-Forwarded-Host $http_host;
|
|
proxy_set_header Host $http_host;
|
|
proxy_max_temp_file_size 0;
|
|
proxy_pass http://127.0.0.1:8080;
|
|
proxy_redirect http:// https://;
|
|
proxy_buffering off;
|
|
proxy_request_buffering off;
|
|
|
|
client_max_body_size 0;
|
|
|
|
access_log /var/log/nginx/airsonic_access.log;
|
|
error_log /var/log/nginx/airsonic_error.log;
|
|
}
|
|
|
|
ssl_certificate /etc/dehydrated/certs/airsonic.ovalwonder.com/fullchain.pem;
|
|
ssl_certificate_key /etc/dehydrated/certs/airsonic.ovalwonder.com/privkey.pem;
|
|
ssl_protocols TLSv1.2;
|
|
|
|
}
|