2023-06-14 00:42:41 +02:00
|
|
|
!!! warning "Important"
|
|
|
|
First read [the overview](r_p.md).
|
2023-06-13 23:49:47 +02:00
|
|
|
|
|
|
|
!!! warning
|
|
|
|
This is an unsupported community contribution. Feel free to provide fixes.
|
|
|
|
|
|
|
|
**Important/Fixme**: This example only forwards HTTPS traffic and does not use mailcows built-in ACME client.
|
|
|
|
|
|
|
|
```
|
|
|
|
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
|
|
|
|
```
|