aboutsummaryrefslogtreecommitdiff
path: root/conf/nginx.conf
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2020-06-09 19:28:30 +0200
committerGitHub <noreply@github.com>2020-06-09 19:28:30 +0200
commit01d0696ff7d2a60a3911089cefc0221cf73eca1d (patch)
treef0ee80538ae4d3f5d51823bed49ec7169b954a06 /conf/nginx.conf
parent6b30109fc986d83166b1805ec3ad7e28200e3743 (diff)
parentd3df899e0a99a63ee1cf7ad845cc513aeaaf30ef (diff)
downloadmastodon_ynh-01d0696ff7d2a60a3911089cefc0221cf73eca1d.tar.gz
mastodon_ynh-01d0696ff7d2a60a3911089cefc0221cf73eca1d.tar.bz2
mastodon_ynh-01d0696ff7d2a60a3911089cefc0221cf73eca1d.zip
make some cleaning of scripts
make some cleaning of scripts
Diffstat (limited to 'conf/nginx.conf')
-rw-r--r--conf/nginx.conf16
1 files changed, 8 insertions, 8 deletions
diff --git a/conf/nginx.conf b/conf/nginx.conf
index 7fa7b87..866fcc7 100644
--- a/conf/nginx.conf
+++ b/conf/nginx.conf
@@ -19,14 +19,14 @@ location / {
}
location ~ ^/(emoji|packs|system/accounts/avatars|system/media_attachments/files) {
- add_header Cache-Control "public, max-age=31536000, immutable";
- add_header Strict-Transport-Security "max-age=31536000";
+ more_set_headers "Cache-Control: public, max-age=31536000, immutable";
+ more_set_headers "Strict-Transport-Security: max-age=31536000";
try_files $uri @proxy;
}
location /sw.js {
- add_header Cache-Control "public, max-age=0";
- add_header Strict-Transport-Security "max-age=31536000";
+ more_set_headers "Cache-Control: public, max-age=0";
+ more_set_headers "Strict-Transport-Security: max-age=31536000";
try_files $uri @proxy;
}
@@ -38,7 +38,7 @@ location @proxy {
proxy_set_header Proxy "";
proxy_pass_header Server;
- proxy_pass http://127.0.0.1:3000;
+ proxy_pass http://127.0.0.1:__PORT_WEB__;
proxy_buffering on;
proxy_redirect off;
proxy_http_version 1.1;
@@ -49,8 +49,8 @@ location @proxy {
proxy_cache_valid 200 7d;
proxy_cache_valid 410 24h;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
- add_header X-Cached $upstream_cache_status;
- add_header Strict-Transport-Security "max-age=31536000";
+ more_set_headers "X-Cached: $upstream_cache_status";
+ more_set_headers "Strict-Transport-Security: max-age=31536000";
tcp_nodelay on;
}
@@ -62,7 +62,7 @@ location /api/v1/streaming {
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Proxy "";
- proxy_pass http://127.0.0.1:4000;
+ proxy_pass http://127.0.0.1:__PORT_STREAM__;
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1;