]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Add media path to directly served files
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 17 May 2019 16:24:53 +0000 (18:24 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 17 May 2019 16:30:11 +0000 (18:30 +0200)
modules/role/manifests/caldance.pp

index 5bc39120841621630e5bd2ee78b975a773eb3983..1c87163c90b43bc2064f2eed0ad4fee0f58d1809 100644 (file)
@@ -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" };