summaryrefslogtreecommitdiffstats
path: root/mailcow/data/conf
diff options
context:
space:
mode:
Diffstat (limited to 'mailcow/data/conf')
-rw-r--r--mailcow/data/conf/nginx/custom_sogo_external.conf52
-rw-r--r--mailcow/data/conf/postfix/extra.cf4
2 files changed, 56 insertions, 0 deletions
diff --git a/mailcow/data/conf/nginx/custom_sogo_external.conf b/mailcow/data/conf/nginx/custom_sogo_external.conf
new file mode 100644
index 0000000..4965263
--- /dev/null
+++ b/mailcow/data/conf/nginx/custom_sogo_external.conf
@@ -0,0 +1,52 @@
+server {
+ listen 8081;
+ #server_name sogo.zz0.email;
+ location ^~ /SOGo/ {
+ location ~* ^/SOGo/so/.*\.(xml|js|html|xhtml)$ {
+ include /etc/nginx/conf.d/sogo_proxy_auth.active;
+ include /etc/nginx/conf.d/sogo.active;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header Host $http_host;
+ proxy_set_header x-webobjects-server-protocol HTTP/1.0;
+ proxy_set_header x-webobjects-remote-host $remote_addr;
+ proxy_set_header x-webobjects-server-name $server_name;
+ proxy_set_header x-webobjects-server-url $client_req_scheme://$http_host;
+ proxy_set_header x-webobjects-server-port $server_port;
+ proxy_hide_header Content-Type;
+ add_header Content-Type text/plain;
+ break;
+ }
+ include /etc/nginx/conf.d/sogo_proxy_auth.active;
+ include /etc/nginx/conf.d/sogo.active;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header Host $http_host;
+ proxy_set_header x-webobjects-server-protocol HTTP/1.0;
+ proxy_set_header x-webobjects-remote-host $remote_addr;
+ proxy_set_header x-webobjects-server-name $server_name;
+ proxy_set_header x-webobjects-server-url $client_req_scheme://$http_host;
+ proxy_set_header x-webobjects-server-port $server_port;
+ proxy_send_timeout 3600;
+ proxy_read_timeout 3600;
+ client_body_buffer_size 128k;
+ client_max_body_size 0;
+ break;
+ }
+
+ location /SOGo.woa/WebServerResources/ {
+ alias /usr/lib/GNUstep/SOGo/WebServerResources/;
+ }
+
+ location /.woa/WebServerResources/ {
+ alias /usr/lib/GNUstep/SOGo/WebServerResources/;
+ }
+
+ location /SOGo/WebServerResources/ {
+ alias /usr/lib/GNUstep/SOGo/WebServerResources/;
+ }
+
+ location (^/SOGo/so/ControlPanel/Products/[^/]*UI/Resources/.*\.(jpg|png|gif|css|js)$) {
+ alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
+ }
+}
diff --git a/mailcow/data/conf/postfix/extra.cf b/mailcow/data/conf/postfix/extra.cf
new file mode 100644
index 0000000..112bae0
--- /dev/null
+++ b/mailcow/data/conf/postfix/extra.cf
@@ -0,0 +1,4 @@
+myhostname = 3gy.de
+
+mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 [fe80::]/10 172.22.1.0/24 [fd4d:6169:6c63:6f77::]/64 192.168.0.0/24 172.16.9.2 [2a03:4000:53:64::] 172.16.9.8/29 172.16.24.0/29
+mail_name = FREEDOM