# Proxy to the Airsonic server
location / {
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 X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Port 444;
#proxy_set_header Host $http_host;
proxy_set_header Host $host:444;
proxy_max_temp_file_size 0;
proxy_pass http://192.168.0.197:4040;
proxy_redirect http:// https://;
}
————————————————
版权声明:本文为CSDN博主「杨浦老苏」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/wbsu2004/article/details/126260075