Little bit late but here is the config that worked for me:
mailcow.conf
Add Subdomain like mail.domain.de to ADDITIONAL_SAN=
docker-compose.override.yml
version: '2.1'
services:
rcdb:
image: mariadb
restart: always
volumes:
- rcdb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=MYSQLROOTPASS
- MYSQL_DATABASE=roundcubemail
- MYSQL_USER=rc
- MYSQL_PASSWORD=MYSQLUSERPASS
networks:
mailcow-network:
rcapp:
image: roundcube/roundcubemail
restart: always
depends_on:
- rcdb
volumes:
- rcdata:/var/www/html
environment:
- ROUNDCUBEMAIL_DB_TYPE=mysql
- ROUNDCUBEMAIL_DB_HOST=rcdb
- ROUNDCUBEMAIL_DB_USER=rc
- ROUNDCUBEMAIL_DB_PASSWORD=MYSQLUSERPASS
- ROUNDCUBEMAIL_SKIN=elastic
- ROUNDCUBEMAIL_DEFAULT_HOST=tls://mailcow.domain.de
- ROUNDCUBEMAIL_SMTP_SERVER=tls://mailcow.domain.de
networks:
mailcow-network:
volumes:
rcdb:
rcdata:
Create a NGINX-Config under data/conf/nginx. (for example mail.conf)
server {
ssl_certificate /etc/ssl/mail/cert.pem;
ssl_certificate_key /etc/ssl/mail/key.pem;
index index.php index.html;
client_max_body_size 0;
root /web;
include /etc/nginx/conf.d/listen_plain.active;
include /etc/nginx/conf.d/listen_ssl.active;
server_name DOMAIN-From-ADDITIONAL_SAN;
location ^~ /.well-known/acme-challenge/ {
allow all;
default_type "text/plain";
}
if ($scheme = http) {
return 301 https://$host$request_uri;
}
location / {
proxy_pass http://rcapp:80/;
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;
client_max_body_size 0;
}
}
Does anybody have a working calendar solution?