2018-08-14 22:18:22 +02:00
|
|
|
# SOGo Proxying
|
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
|
|
location ^~ __PATH__/ {
|
2022-01-15 10:36:06 +01:00
|
|
|
|
2018-08-14 22:18:22 +02:00
|
|
|
proxy_pass http://127.0.0.1:__PORT__;
|
|
|
|
proxy_redirect http://127.0.0.1:__PORT__/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;
|
2019-02-11 14:43:53 +01:00
|
|
|
|
|
|
|
client_max_body_size 100M;
|
2018-08-14 22:18:22 +02:00
|
|
|
}
|
2016-03-18 18:38:54 +01:00
|
|
|
|
2018-08-14 22:18:22 +02:00
|
|
|
location __PATH__.woa/WebServerResources/ {
|
|
|
|
alias /usr/lib/GNUstep/SOGo/WebServerResources/;
|
|
|
|
}
|
|
|
|
location __PATH__/WebServerResources/ {
|
|
|
|
alias /usr/lib/GNUstep/SOGo/WebServerResources/;
|
|
|
|
}
|
|
|
|
location ^__PATH__/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ {
|
|
|
|
alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
|
|
|
|
}
|