ddavness / power-mailinabox

A Mail-in-a-Box with extra capabilities and more customizability. Not just for power users!
Creative Commons Zero v1.0 Universal
172 stars 32 forks source link

Add a way for users to specify custom upstream directives #38

Closed ddavness closed 2 years ago

ddavness commented 2 years ago

Upstream directives like the following:

upstream {
    server 127.0.0.1:4269
    server 127.0.0.2:4269
}

Cannot be specified inside server {} blocks. The regular /home/user-data/www/<domain>.conf file is already included inside a server block - that means top-level directives like upstream were impossible until that point.

A new file will be placed at /home/user-data/www/.upstream.conf - anything written there is included before any and all server blocks.