commit 038c4f05e9eeff690cee27cd780ad7ca7675eea6 Author: Adel Kadi Date: Tue May 19 11:50:12 2026 +0100 mailcow proxy diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..79de431 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx:alpine + +COPY default.conf /etc/nginx/conf.d/default.conf \ No newline at end of file diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..9308061 --- /dev/null +++ b/default.conf @@ -0,0 +1,14 @@ +server { + listen 80; + + location / { + proxy_pass https://nginx-mailcow:8443; + + proxy_ssl_verify off; + + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto https; + } +} \ No newline at end of file