1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-05 15:57:23 +01:00

preliminary script for nginx

This commit is contained in:
Joshua Tauberer
2013-09-01 14:24:49 +00:00
parent 5d26c490af
commit 5b82bbb5b3
2 changed files with 47 additions and 0 deletions

17
scripts/web.sh Executable file
View File

@@ -0,0 +1,17 @@
# HTTP: Turn on a web server serving static files
#################################################
apt-get install -q -y nginx
rm -f /etc/nginx/sites-enabled/default.conf
cat conf/nginx.conf \
| sed "s/\$STORAGE_ROOT/$STORAGE_ROOT/g" \
| sed "s/\$PUBLIC_HOSTNAME/$PUBLIC_HOSTNAME/g" \
> /etc/nginx/sites-enabled/local.conf
service nginx reload
ufw allow http
ufw allow https