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:
parent
770ff3ee6b
commit
5e0818d349
2 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
# SOGo Proxying
|
||||
location ^~ /SOGo {
|
||||
location ^~ /VARPATH {
|
||||
proxy_pass http://127.0.0.1:20000;
|
||||
proxy_redirect http://127.0.0.1:20000/SOGo/ /SOGo;
|
||||
# forward user's IP address
|
||||
|
@ -12,9 +12,6 @@
|
|||
proxy_set_header x-webobjects-server-url $scheme://$host;
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
}
|
||||
# SOGo
|
||||
location ~ ^/sogo { rewrite ^ https://$host/SOGo; }
|
||||
location ~ ^/SOGO { rewrite ^ https://$host/SOGo; }
|
||||
|
||||
# For IOS 7
|
||||
location = /principals/ {
|
||||
|
@ -23,13 +20,13 @@
|
|||
}
|
||||
|
||||
|
||||
location /SOGo.woa/WebServerResources/ {
|
||||
location /VARPATH.woa/WebServerResources/ {
|
||||
alias /usr/lib/GNUstep/SOGo/WebServerResources/;
|
||||
}
|
||||
location /SOGo/WebServerResources/ {
|
||||
location /VARPATH/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;
|
||||
}
|
||||
|
||||
|
|
|
@ -49,6 +49,9 @@ sudo sed -i "s@DBPASS@$db_pwd@g" ../conf/sogo.conf
|
|||
#Copy SOGo config
|
||||
sudo cp ../conf/sogo.conf /etc/sogo/sogo.conf
|
||||
|
||||
#Configure Nginx
|
||||
sudo sed -i "s@VARPATH@$path@g" ../conf/nginx.conf
|
||||
|
||||
#copy Nginx config
|
||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
|
|
Loading…
Reference in a new issue