diff --git a/puppet/zulip_internal/files/nginx/sites-available/zulip b/puppet/zulip_internal/files/nginx/sites-available/zulip index 46c96050cb..39d18b803d 100644 --- a/puppet/zulip_internal/files/nginx/sites-available/zulip +++ b/puppet/zulip_internal/files/nginx/sites-available/zulip @@ -52,6 +52,18 @@ server { alias /srv/www/dist/; } + # Enterprise downloads + location /enterprise/ { + alias /srv/www/enterprise/; + autoindex on; + + location /enterprise/download { + alias /srv/www/enterprise/download; + auth_basic "Password needed"; + auth_basic_user_file /srv/www/enterprise/download/.htpasswd; + } + } + include /etc/nginx/zulip-include/app; } diff --git a/puppet/zulip_internal/manifests/prod_app_frontend.pp b/puppet/zulip_internal/manifests/prod_app_frontend.pp index d7e47e486b..94b24acfdc 100644 --- a/puppet/zulip_internal/manifests/prod_app_frontend.pp +++ b/puppet/zulip_internal/manifests/prod_app_frontend.pp @@ -17,7 +17,8 @@ class zulip_internal::prod_app_frontend { file { [ "/srv/www/", "/srv/www/dist/", "/srv/www/dist/api", "/srv/www/dist/apps/", "/srv/www/dist/apps/mac/", - "/srv/www/dist/apps/win/" ]: + "/srv/www/dist/apps/win/", "/srv/www/enterprise/", + "/srv/www/enterprise/download/" ]: ensure => "directory", owner => "zulip", group => "zulip",