mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-13 01:07:42 -05:00
handle play in background
This commit is contained in:
@@ -38,13 +38,26 @@ server {
|
||||
|
||||
location /favicon.ico {
|
||||
proxy_pass http://frontend:3000;
|
||||
expires 1M;
|
||||
add_header Surrogate-Control "public, max-age=2629746";
|
||||
add_header Cache-Control "max-age=2629746, public";
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location /*.png {
|
||||
proxy_pass http://frontend:3000;
|
||||
access_log off;
|
||||
}
|
||||
proxy_pass http://frontend:3000;
|
||||
access_log off;
|
||||
expires 1M;
|
||||
add_header Cache-Control "max-age=2629746, public";
|
||||
}
|
||||
|
||||
location /*.m4a {
|
||||
proxy_pass http://frontend:3000;
|
||||
access_log off;
|
||||
expires 1M;
|
||||
add_header Surrogate-Control "public, max-age=2629746";
|
||||
add_header Cache-Control "max-age=2629746, public";
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://frontend:3000;
|
||||
|
||||
@@ -16,13 +16,29 @@ server {
|
||||
|
||||
location /favicon.ico {
|
||||
proxy_pass http://frontend:3000;
|
||||
access_log off;
|
||||
expires 1M;
|
||||
add_header Surrogate-Control "public, max-age=604800";
|
||||
add_header Cache-Control "max-age=604800, public";
|
||||
access_log /dev/stdout main;
|
||||
}
|
||||
|
||||
location /*.png {
|
||||
proxy_pass http://frontend:3000;
|
||||
access_log off;
|
||||
}
|
||||
location ~* \.(gif|jpg|png)$ {
|
||||
proxy_pass http://frontend:3000;
|
||||
|
||||
add_header Pragma public;
|
||||
add_header Surrogate-Control "public, max-age=604800";
|
||||
add_header Cache-Control "max-age=604800, public";
|
||||
expires 1M;
|
||||
}
|
||||
|
||||
location /silence.m4a {
|
||||
proxy_pass http://frontend:3000;
|
||||
access_log /dev/stdout main;
|
||||
|
||||
add_header Surrogate-Control "public, max-age=604800";
|
||||
add_header Cache-Control "max-age=604800, public";
|
||||
expires 1M;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://frontend:3000;
|
||||
@@ -80,6 +96,6 @@ server {
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
access_log off;
|
||||
access_log /dev/stdout main;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user