Expose password-protected /enterprise/download through nginx.

(imported from commit 8fba915bf0d0c718138ac62bd4333aef4e845d55)
This commit is contained in:
Jessica McKellar 2013-11-13 15:25:56 -05:00
parent 76e1c80ac5
commit 1cb339a23d
2 changed files with 14 additions and 1 deletions

View File

@ -52,6 +52,18 @@ server {
alias /srv/www/dist/; 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; include /etc/nginx/zulip-include/app;
} }

View File

@ -17,7 +17,8 @@ class zulip_internal::prod_app_frontend {
file { [ "/srv/www/", "/srv/www/dist/", "/srv/www/dist/api", file { [ "/srv/www/", "/srv/www/dist/", "/srv/www/dist/api",
"/srv/www/dist/apps/", "/srv/www/dist/apps/mac/", "/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", ensure => "directory",
owner => "zulip", owner => "zulip",
group => "zulip", group => "zulip",