Use STACK_NAME here

This commit is contained in:
decentral1se 2021-05-07 01:41:31 +02:00
parent 6e4a3ce57d
commit 23112082aa
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ services:
- NGINX_WEBSEED_CDN_URI
- NGINX_WEBSEED_PROXY_ENABLED
- NGINX_WEBSEED_PROXY_URI
- STACK_NAME
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro

View File

@ -6,7 +6,7 @@ events {
http {
upstream backend {
server app:9000;
server {{ env "STACK_NAME" }}_app:9000;
}
proxy_cache_path /var/cache/nginx/peertube-media-cache levels=1:2 keys_zone=peertube_media_cache:5m max_size=40g inactive=72h use_temp_path=off;