1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-24 07:37:04 +00:00

Add changes for mailgraph webserver

This commit is contained in:
John Supplee 2019-03-02 15:30:08 +02:00
parent dd7a2aa8a6
commit 887e292748
2 changed files with 11 additions and 1 deletions

View File

@ -64,4 +64,14 @@
rewrite ^/.well-known/carddav /cloud/remote.php/carddav/ redirect; rewrite ^/.well-known/carddav /cloud/remote.php/carddav/ redirect;
rewrite ^/.well-known/caldav /cloud/remote.php/caldav/ 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 # ADDITIONAL DIRECTIVES HERE

View File

@ -19,7 +19,7 @@ fi
echo "Installing Nginx (web server)..." 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 rm -f /etc/nginx/sites-enabled/default