diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-17 18:24:53 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-17 18:30:11 +0200 |
commit | 83341b3ca1ef7dbba1afaea41a722b43e50bdb5b (patch) | |
tree | c4e3f339e2e5c8c409fa453410be30a50e2b47df /modules/role/manifests | |
parent | 83694da6825dfc14c7003a4074c668ca6d9eddfd (diff) | |
download | Puppet-83341b3ca1ef7dbba1afaea41a722b43e50bdb5b.tar.gz Puppet-83341b3ca1ef7dbba1afaea41a722b43e50bdb5b.tar.zst Puppet-83341b3ca1ef7dbba1afaea41a722b43e50bdb5b.zip |
Add media path to directly served files
Diffstat (limited to 'modules/role/manifests')
-rw-r--r-- | modules/role/manifests/caldance.pp | 9 |
1 files changed, 9 insertions, 0 deletions
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 | |||
@@ -190,6 +190,11 @@ class role::caldance ( | |||
190 | require => "all granted", | 190 | require => "all granted", |
191 | }, | 191 | }, |
192 | { | 192 | { |
193 | path => "$home/media", | ||
194 | require => "all granted", | ||
195 | options => ["-Indexes"], | ||
196 | }, | ||
197 | { | ||
193 | path => "/", | 198 | path => "/", |
194 | provider => "location", | 199 | provider => "location", |
195 | require => "valid-user", | 200 | require => "valid-user", |
@@ -203,6 +208,10 @@ class role::caldance ( | |||
203 | alias => "/static/", | 208 | alias => "/static/", |
204 | path => "$caldance_app/www/static/", | 209 | path => "$caldance_app/www/static/", |
205 | }, | 210 | }, |
211 | { | ||
212 | alias => "/media/", | ||
213 | path => "$home/media/", | ||
214 | }, | ||
206 | ], | 215 | ], |
207 | setenv => $apache_env, | 216 | setenv => $apache_env, |
208 | wsgi_script_aliases => { "/" => "$caldance_app/main_app/wsgi.py" }; | 217 | wsgi_script_aliases => { "/" => "$caldance_app/main_app/wsgi.py" }; |