From f52e912f5372293a18110c06c96f0f3f90de80e8 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 23 May 2019 17:30:08 +0200 Subject: [PATCH] Make cache size variable --- inventory.example | 4 ++-- templates/docker-compose.yml | 2 +- templates/nginx.conf | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inventory.example b/inventory.example index 473c349..81585d5 100644 --- a/inventory.example +++ b/inventory.example @@ -1,8 +1,8 @@ [peertube] # 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 -myserver domain=example.com +myserver domain=example.com cache_size_gb=15 [all:vars] ansible_connection=ssh diff --git a/templates/docker-compose.yml b/templates/docker-compose.yml index 9f76ae3..d76a60a 100644 --- a/templates/docker-compose.yml +++ b/templates/docker-compose.yml @@ -36,7 +36,7 @@ services: restart: "always" peertube: - image: chocobozzz/peertube:v1.3.0-rc.1-stretch + image: chocobozzz/peertube:v1.3.0-rc.2-stretch env_file: - .env volumes: diff --git a/templates/nginx.conf b/templates/nginx.conf index 36d98ab..c82f3d1 100644 --- a/templates/nginx.conf +++ b/templates/nginx.conf @@ -3,7 +3,7 @@ events { } 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 { listen 9000;