Add mailcow subdomain sample config#756
Add mailcow subdomain sample config#756petarvnikolov wants to merge 3 commits intolinuxserver:masterfrom petarvnikolov:master
Conversation
|
This pull request has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
| proxy_set_header Host $http_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 $scheme; |
There was a problem hiding this comment.
These are redundant, they should exist in proxy.conf
There was a problem hiding this comment.
The issue was that when i tried to overwrite values for proxy_buffers and etc., nginx detected duplicated directives in the same context. That is why I removed the proxy.conf include and wrote all the necessary directives manually in the location blocks. Would a more accurate solution be to define the proxy.conf include in the server block of the proxy-conf and overwrite the necessary directives in the location blocks?
There was a problem hiding this comment.
*The specific values for proxy_buffers, proxy_buffer_size, proxy_busy_buffers_size, proxy_connection_timeout, proxy_send_timeout and proxy_read_timeout are required as per the mailcow-dockerized documentation regarding reverse proxies.
|
I mistakenly submitted the pull request from the master branch of my fork. I will close this PR and create a new one. |
Description
I made a sample reverse proxy config for mailcow. It is made according to the documentation and modified with some head-bashing :)
Benefits of this PR and context
Users, which host their mailcow mail server behind a SWAG reverse proxy will be able to easily set it up.
How Has This Been Tested?
The config was tested for a mailcow server I am hosting for myself. It took some time to unbreak the SOGo mail client Exchange ActiveSync functionality after I mistakenly appended the URI for it to the end of the
proxy_passdirective in the corresponding location block.Source / References