2016-03-18 20:26:09 +01:00
|
|
|
# SOGo Proxying
|
2016-03-18 20:36:22 +01:00
|
|
|
location ^~ /VARPATH {
|
2016-03-18 18:38:54 +01:00
|
|
|
proxy_pass http://127.0.0.1:20000;
|
|
|
|
proxy_redirect http://127.0.0.1:20000/SOGo/ /SOGo;
|
|
|
|
# forward user's IP address
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header x-webobjects-server-protocol HTTP/1.0;
|
|
|
|
proxy_set_header x-webobjects-remote-host 127.0.0.1;
|
|
|
|
proxy_set_header x-webobjects-server-name $server_name;
|
|
|
|
proxy_set_header x-webobjects-server-url $scheme://$host;
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
|
|
|
}
|
2016-03-18 20:26:09 +01:00
|
|
|
|
|
|
|
# For IOS 7
|
|
|
|
location = /principals/ {
|
|
|
|
rewrite ^ https://$server_name/SOGo/dav;
|
|
|
|
allow all;
|
|
|
|
}
|
|
|
|
|
2016-03-18 18:38:54 +01:00
|
|
|
|
2016-03-18 20:36:22 +01:00
|
|
|
location /VARPATH.woa/WebServerResources/ {
|
2016-03-18 18:38:54 +01:00
|
|
|
alias /usr/lib/GNUstep/SOGo/WebServerResources/;
|
|
|
|
}
|
2016-03-18 20:36:22 +01:00
|
|
|
location /VARPATH/WebServerResources/ {
|
2016-03-18 18:38:54 +01:00
|
|
|
alias /usr/lib/GNUstep/SOGo/WebServerResources/;
|
|
|
|
}
|
2016-03-18 20:36:22 +01:00
|
|
|
location ^/VARPATH/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ {
|
2016-03-18 18:38:54 +01:00
|
|
|
alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
|
|
|
|
}
|
|
|
|
|
|
|
|
|