1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/sogo_ynh.git synced 2024-09-03 20:26:07 +02:00

updated nginx conf for path varible

This commit is contained in:
Matthew Frost 2016-03-18 20:36:22 +01:00
parent 770ff3ee6b
commit 5e0818d349
2 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,5 @@
# SOGo Proxying # SOGo Proxying
location ^~ /SOGo { location ^~ /VARPATH {
proxy_pass http://127.0.0.1:20000; proxy_pass http://127.0.0.1:20000;
proxy_redirect http://127.0.0.1:20000/SOGo/ /SOGo; proxy_redirect http://127.0.0.1:20000/SOGo/ /SOGo;
# forward user's IP address # forward user's IP address
@ -12,9 +12,6 @@
proxy_set_header x-webobjects-server-url $scheme://$host; proxy_set_header x-webobjects-server-url $scheme://$host;
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;
} }
# SOGo
location ~ ^/sogo { rewrite ^ https://$host/SOGo; }
location ~ ^/SOGO { rewrite ^ https://$host/SOGo; }
# For IOS 7 # For IOS 7
location = /principals/ { location = /principals/ {
@ -23,13 +20,13 @@
} }
location /SOGo.woa/WebServerResources/ { location /VARPATH.woa/WebServerResources/ {
alias /usr/lib/GNUstep/SOGo/WebServerResources/; alias /usr/lib/GNUstep/SOGo/WebServerResources/;
} }
location /SOGo/WebServerResources/ { location /VARPATH/WebServerResources/ {
alias /usr/lib/GNUstep/SOGo/WebServerResources/; alias /usr/lib/GNUstep/SOGo/WebServerResources/;
} }
location ^/SOGo/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ { location ^/VARPATH/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ {
alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2; alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
} }

View file

@ -49,6 +49,9 @@ sudo sed -i "s@DBPASS@$db_pwd@g" ../conf/sogo.conf
#Copy SOGo config #Copy SOGo config
sudo cp ../conf/sogo.conf /etc/sogo/sogo.conf sudo cp ../conf/sogo.conf /etc/sogo/sogo.conf
#Configure Nginx
sudo sed -i "s@VARPATH@$path@g" ../conf/nginx.conf
#copy Nginx config #copy Nginx config
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf