File size limit increase for git, message size limit of mail increase

This commit is contained in:
cspark 2024-06-26 16:19:00 +01:00
parent 3adbcfc8d6
commit be1405766c
5 changed files with 14 additions and 9 deletions

View File

@ -14,6 +14,8 @@ server {
include proxy_params; include proxy_params;
} }
client_max_body_size 512M;
listen [::]:443 ssl; listen [::]:443 ssl;
listen 443 ssl; listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/{{ domain_name }}/fullchain.pem; ssl_certificate /etc/letsencrypt/live/{{ domain_name }}/fullchain.pem;

View File

@ -58,7 +58,7 @@ PermitRootLogin no
#IgnoreRhosts yes #IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here! # To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no PasswordAuthentication yes
#PermitEmptyPasswords no #PermitEmptyPasswords no
# Change to yes to enable challenge-response passwords (beware issues with # Change to yes to enable challenge-response passwords (beware issues with

View File

@ -30,5 +30,5 @@ services:
- ./data/certbot/certs:/etc/letsencrypt - ./data/certbot/certs:/etc/letsencrypt
- ./data/certbot/logs:/var/log/letsencrypt - ./data/certbot/logs:/var/log/letsencrypt
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
entrypoint: sh -c "sleep 15 && certbot certonly --standalone -d mail.{{ domain_name }} --noninteractive --agree-tos --email alerts@{{ domain_name }} --no-eff-email" entrypoint: sh -c "sleep 15 && certbot certonly --standalone -d *.{{ domain_name }} --noninteractive --agree-tos --email alerts@{{ domain_name }} --no-eff-email"

View File

@ -22,6 +22,7 @@ services:
- "993:993" # IMAPS Implicit TLS / Appears to not be used - "993:993" # IMAPS Implicit TLS / Appears to not be used
- "143:143" # IMAPS IMAP+STARTTLS Explicit TLS / Appears to be used - "143:143" # IMAPS IMAP+STARTTLS Explicit TLS / Appears to be used
deploy: deploy:
resources:
limits: limits:
cpus: '0.10' cpus: '0.10'
memory: 512M memory: 512M
@ -59,9 +60,11 @@ services:
- ENABLE_AMAVIS=0 - ENABLE_AMAVIS=0
- ENABLE_SPAMASSASSIN=0 - ENABLE_SPAMASSASSIN=0
- ENABLE_CLAMAV=0 - ENABLE_CLAMAV=0
- POSTFIX_MESSAGE_SIZE_LIMIT=0
cap_add: cap_add:
- NET_ADMIN # For Fail2Ban to work - NET_ADMIN # For Fail2Ban to work
deploy: deploy:
resources:
limits: limits:
cpus: '0.25' cpus: '0.25'
memory: 512M memory: 512M