International login text
This commit is contained in:
parent
2676a9da9b
commit
f37145d13e
|
@ -582,6 +582,7 @@ function create_tahoelafs_web {
|
|||
if [ ! -d /var/www/tahoelafs/htdocs ]; then
|
||||
mkdir -p /var/www/tahoelafs/htdocs
|
||||
fi
|
||||
TAHOELAFS_LOGIN_TEXT=$'Tahoe-LAFS login'
|
||||
|
||||
tahoelafs_nginx_site=/etc/nginx/sites-available/tahoelafs
|
||||
echo 'server {' > $tahoelafs_nginx_site
|
||||
|
@ -599,7 +600,7 @@ function create_tahoelafs_web {
|
|||
echo " root /var/www/tahoelafs/htdocs;" >> $tahoelafs_nginx_site
|
||||
echo '' >> $tahoelafs_nginx_site
|
||||
echo ' location / {' >> $tahoelafs_nginx_site
|
||||
echo ' auth_basic $"Tahoe-LAFS login";' >> $tahoelafs_nginx_site
|
||||
echo " auth_basic \"${TAHOELAFS_LOGIN_TEXT}\";" >> $tahoelafs_nginx_site
|
||||
echo ' auth_basic_user_file /etc/nginx/.htpasswd-tahoelafs;' >> $tahoelafs_nginx_site
|
||||
function_check nginx_limits
|
||||
nginx_limits tahoelafs '15m'
|
||||
|
|
Loading…
Reference in New Issue