From: Ismaƫl Bouya Date: Fri, 17 May 2019 16:24:53 +0000 (+0200) Subject: Add media path to directly served files X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=83341b3ca1ef7dbba1afaea41a722b43e50bdb5b;p=perso%2FImmae%2FProjets%2FPuppet.git Add media path to directly served files --- diff --git a/modules/role/manifests/caldance.pp b/modules/role/manifests/caldance.pp index 5bc3912..1c87163 100644 --- a/modules/role/manifests/caldance.pp +++ b/modules/role/manifests/caldance.pp @@ -189,6 +189,11 @@ class role::caldance ( path => "$caldance_app/www/static", require => "all granted", }, + { + path => "$home/media", + require => "all granted", + options => ["-Indexes"], + }, { path => "/", provider => "location", @@ -203,6 +208,10 @@ class role::caldance ( alias => "/static/", path => "$caldance_app/www/static/", }, + { + alias => "/media/", + path => "$home/media/", + }, ], setenv => $apache_env, wsgi_script_aliases => { "/" => "$caldance_app/main_app/wsgi.py" };