1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/airsonic_ynh.git synced 2024-09-03 18:06:14 +02:00
airsonic_ynh/conf/nginx.conf

36 lines
1.5 KiB
Nginx Configuration File
Raw Normal View History

2019-02-06 19:37:46 +01:00
# source of config file : https://airsonic.github.io/docs/proxy/nginx/
# adapted for yunohost
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
2022-09-21 22:43:56 +02:00
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_http_version 1.1;
2022-09-21 01:03:09 +02:00
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;
2022-09-21 22:43:56 +02:00
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header Host $host;
2022-09-21 01:03:09 +02:00
proxy_max_temp_file_size 0;
proxy_pass http://127.0.0.1:__PORT__;
proxy_redirect http:// https://;
2022-09-21 22:43:56 +02:00
proxy_buffering off;
proxy_request_buffering off;
2019-02-06 19:37:46 +01:00
2022-09-21 01:03:09 +02:00
# set client body size to 500 MB
# Allows to upload zip file up to 500 MB
# See https://github.com/YunoHost-Apps/airsonic_ynh/issues/4
client_max_body_size 500M;
2022-09-21 01:03:09 +02:00
# Fix last DSub releases not able to connect with LDAP
# See https://github.com/airsonic/airsonic/issues/260
sub_filter_types text/xml application/json;
sub_filter_once off;
sub_filter 'subsonic' 'madsonic';
# Include SSOWAT user panel.
#include conf.d/yunohost_panel.conf.inc;
#proxy_set_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' www.gstatic.com; img-src 'self' *.akamaized.net; style-src 'self' 'unsafe-inline' fonts.googleapis.com; font-src 'self' fonts.gstatic.com; frame-src 'self'; object-src 'none'";
}