mirror of
https://github.com/YunoHost-Apps/lufi_ynh.git
synced 2024-09-03 19:36:28 +02:00
Update nginx.conf
This commit is contained in:
parent
3cadd2b997
commit
2e1695c9f4
1 changed files with 4 additions and 5 deletions
|
@ -5,23 +5,22 @@ location __PATH__/ {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
# This is important for user's privacy !
|
# This is important for user's privacy!
|
||||||
access_log off;
|
access_log off;
|
||||||
error_log /var/log/nginx/lufi.error.log;
|
error_log /var/log/nginx/lufi.error.log;
|
||||||
|
|
||||||
# This is important ! Make it OK with your Lutim configuration
|
# This is important! Make it OK with your Lutim configuration
|
||||||
client_max_body_size __MAX_FILE_SIZE__M;
|
client_max_body_size __MAX_FILE_SIZE__M;
|
||||||
|
|
||||||
if ($request_uri ~* ^/(img|css|font|js)/) {
|
if ($request_uri ~* ^/(img|css|font|js)/) {
|
||||||
# If uncommented, it triggers some net::ERR_HTTP2_PROTOCOL_ERROR
|
# If uncommented, it triggers some net::ERR_HTTP2_PROTOCOL_ERROR with chromium
|
||||||
# with chromium
|
|
||||||
#more_set_headers Expires "Thu, 31 Dec 2037 23:55:55 GMT";
|
#more_set_headers Expires "Thu, 31 Dec 2037 23:55:55 GMT";
|
||||||
#more_set_headers Cache-Control "public, max-age=315360000";
|
#more_set_headers Cache-Control "public, max-age=315360000";
|
||||||
}
|
}
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:__PORT____PATH__;
|
proxy_pass http://127.0.0.1:__PORT____PATH__;
|
||||||
|
|
||||||
# Really important ! Lufi uses WebSocket, it won't work without this
|
# Really important! Lufi uses WebSocket, it won't work without this
|
||||||
proxy_set_header Upgrade $http_upgrade ;
|
proxy_set_header Upgrade $http_upgrade ;
|
||||||
proxy_set_header Connection "upgrade" ;
|
proxy_set_header Connection "upgrade" ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue