1
0
mirror of https://yerbamate.ml/nutomic/peertube.social synced 2024-11-25 01:28:21 -05:00

Make cache size variable

This commit is contained in:
Felix Ableitner 2019-05-23 17:30:08 +02:00
parent c2cce34964
commit f52e912f53
3 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
[peertube] [peertube]
# define the username and hostname that you use for ssh connection, and specify the domain # define the username and hostname that you use for ssh connection, and specify the domain
myuser@example.com domain=example.com myuser@example.com domain=example.com cache_size_gb=15
# you can also use a host that is defined in your ssh config # you can also use a host that is defined in your ssh config
myserver domain=example.com myserver domain=example.com cache_size_gb=15
[all:vars] [all:vars]
ansible_connection=ssh ansible_connection=ssh

View File

@ -36,7 +36,7 @@ services:
restart: "always" restart: "always"
peertube: peertube:
image: chocobozzz/peertube:v1.3.0-rc.1-stretch image: chocobozzz/peertube:v1.3.0-rc.2-stretch
env_file: env_file:
- .env - .env
volumes: volumes:

View File

@ -3,7 +3,7 @@ events {
} }
http { http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=peertube_cache:10m max_size=15g use_temp_path=off; proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=peertube_cache:10m max_size={{ cache_size_gb }}g use_temp_path=off;
server { server {
listen 9000; listen 9000;