mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
Update nginx.conf
This commit is contained in:
parent
cb4a22df8e
commit
befd33ed15
1 changed files with 9 additions and 0 deletions
|
@ -20,6 +20,15 @@ location __PATH__/ {
|
|||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
}
|
||||
|
||||
location ~ ^__PATH__/picture/ {
|
||||
include fastcgi_params;
|
||||
add_header X-Cache $upstream_cache_status;
|
||||
fastcgi_ignore_headers "Cache-Control" "Expires" "Set-Cookie";
|
||||
fastcgi_cache nginx_cache;
|
||||
fastcgi_cache_key $request_method$host$request_uri;
|
||||
fastcgi_cache_valid any 7d;
|
||||
}
|
||||
|
||||
location ~ ^__PATH__/ws/ {
|
||||
proxy_pass http://127.0.0.1:__PORT__;
|
||||
proxy_http_version 1.1;
|
||||
|
|
Loading…
Add table
Reference in a new issue