mirror of https://github.com/zulip/zulip.git
Expose password-protected /enterprise/download through nginx.
(imported from commit 8fba915bf0d0c718138ac62bd4333aef4e845d55)
This commit is contained in:
parent
76e1c80ac5
commit
1cb339a23d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue