Add changes for mailgraph webserver
This commit is contained in:
parent
dd7a2aa8a6
commit
887e292748
2 changed files with 11 additions and 1 deletions
|
@ -64,4 +64,14 @@
|
|||
rewrite ^/.well-known/carddav /cloud/remote.php/carddav/ redirect;
|
||||
rewrite ^/.well-known/caldav /cloud/remote.php/caldav/ redirect;
|
||||
|
||||
location ~ ^/mailgraph/.*\.cgi {
|
||||
root /usr/share/mailgraph;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME /usr/share/mailgraph/mailgraph.$
|
||||
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
||||
|
||||
auth_basic "box";
|
||||
auth_basic_user_file /etc/nginx/htpasswd;
|
||||
}
|
||||
|
||||
# ADDITIONAL DIRECTIVES HERE
|
||||
|
|
|
@ -19,7 +19,7 @@ fi
|
|||
|
||||
echo "Installing Nginx (web server)..."
|
||||
|
||||
apt_install nginx php-cli php-fpm
|
||||
apt_install nginx php-cli php-fpm fcgiwrap mailgraph
|
||||
|
||||
rm -f /etc/nginx/sites-enabled/default
|
||||
|
||||
|
|
Loading…
Reference in a new issue