HAProxy reverse proxy documentation

Dieser Commit ist enthalten in:
Michael Kuron 2017-05-03 22:39:33 +02:00 committet von GitHub
Ursprung 6359268765
Commit 767c32b539

Datei anzeigen

@ -145,6 +145,19 @@ server {
} }
``` ```
### HAProxy
```
frontend https-in
bind :::443 v4v6 ssl crt mailcow.pem
default_backend mailcow
backend mailcow
option forwardfor
http-request set-header X-Forwarded-Proto https if { ssl_fc }
http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
server mailcow 127.0.0.1:8080 check
```
## Optional: Setup a relayhost ## Optional: Setup a relayhost
Insert these lines to `data/conf/postfix/main.cf`. "relayhost" does already exist (empty), just change its value. Insert these lines to `data/conf/postfix/main.cf`. "relayhost" does already exist (empty), just change its value.