Open rkcreation opened 7 months ago
Hi, I like the idea of using mailcows nginx. However, your config file does not pass nginx config test:
nginx: [emerg] invalid number of arguments in "ssl_ciphers" directive in /etc/nginx/conf.d/mailman.conf:7
nginx: configuration file /etc/nginx/nginx.conf test failed
Is ssh_chipers really needed? In any case, the following should work:
ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305;
ssl_ecdh_curve X25519:X448:secp384r1:secp256k1;
cheers, Thorsten
Hi, I've found another issue, if the mailman-web container is down, nginx-mailcow does not start:
[emerg] 18#18: host not found in upstream "mailman-web" in /etc/nginx/conf.d/mailman.conf
Adding the docker dns as a resolver does not seem to work or I did something wrong.
Edit: this seems to work:
location / {
resolver 127.0.0.11 valid=30s;
set $custom_upstream mailman-web;
uwsgi_pass $custom_upstream:8080;
include uwsgi_params;
client_max_body_size 0;
}
You're right, it's a mistake from my own for nginx config, it's ok with this :
ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305;
ssl_ecdh_curve X25519:X448:secp384r1:secp256k1;
Your second comment also seems to work 👍
Hi
I have achieved mailcow + mailman setup without the need of Apache reverse-proxy. I instead use custom site on mailcow nginx, so certs are already handled by mailcow.
In
/opt/mailcow-dockerized
:All other thigs are same as tutorial. Could someone test and give some feedback about that ?
I find this way simpler, and works in more cases than proxying mailcow.