Files
computer-playbook/roles/web-app-mailu/config/main.yml
Kevin Veen-Birkenbach 57d5269b07 CSP (Safari-safe): merge -elem/-attr into base; respect explicit disables; no mirror-back; header only for documents/workers
- Add CSP3 support for style/script: include -elem and -attr directives
- Base (style-src, script-src) now unions elem/attr (CSP2/Safari fallback)
- Respect explicit base disables (e.g. style-src.unsafe-inline: false)
- Hashes only when 'unsafe-inline' absent in the final base tokens
- Nginx: set CSP only for HTML/worker via header_filter_by_lua_block; drop for subresources
- Remove per-location header_filter; keep body_filter only
- Update app role flags to *-attr where appropriate; extend desktop CSS sources
- Add comprehensive unit tests for union/explicit-disable/no-mirror-back

Ref: https://chatgpt.com/share/68f87a0a-cebc-800f-bb3e-8c8ab4dee8ee
2025-10-22 13:53:06 +02:00

102 lines
2.9 KiB
YAML

oidc:
email_by_username: true # If true, then the mail is set by the username. If wrong then the OIDC user email is used
enable_user_creation: true # Users will be created if not existing
domain: "{{ SYSTEM_EMAIL.DOMAIN }}" # The main domain from which mails will be send \ email suffix behind @
features:
matomo: true
css: false
desktop: true
oidc: true
central_database: true
logout: true
server:
domains:
canonical:
- "{{ SYSTEM_EMAIL.HOST }}"
aliases: []
csp:
flags:
style-src-attr:
unsafe-inline: true
script-src-elem:
unsafe-inline: true
script-src-attr:
unsafe-inline: true
unsafe-eval: true
rbac:
roles:
mail-bot:
description: "Has an token to send and receive emails"
docker:
services:
mailu:
version: "2024.06"
name: mailu
redis:
enabled: true
cpus: "0.2"
mem_reservation: "256m"
mem_limit: "512m"
pids_limit: 256
database:
enabled: true
cpus: "0.8"
mem_reservation: "1g"
mem_limit: "2g"
pids_limit: 512
admin:
cpus: "0.3"
mem_reservation: "512m"
mem_limit: "1g"
pids_limit: 512
imap:
cpus: "0.5"
mem_reservation: "1g"
mem_limit: "1.5g"
pids_limit: 512
smtp:
cpus: "0.5"
mem_reservation: "1g"
mem_limit: "1.5g"
pids_limit: 512
antispam:
cpus: "0.6"
mem_reservation: "1g"
mem_limit: "1.5g"
pids_limit: 512
antivirus:
cpus: "0.6"
mem_reservation: "2g"
mem_limit: "3g"
pids_limit: 512
oletools:
cpus: "0.2"
mem_reservation: "256m"
mem_limit: "512m"
pids_limit: 256
webdav:
cpus: "0.2"
mem_reservation: "256m"
mem_limit: "512m"
pids_limit: 256
fetchmail:
cpus: "0.2"
mem_reservation: "256m"
mem_limit: "512m"
pids_limit: 256
webmail:
cpus: "0.3"
mem_reservation: "512m"
mem_limit: "1g"
pids_limit: 512
resolver:
cpus: "0.2"
mem_reservation: "256m"
mem_limit: "512m"
pids_limit: 256
front:
cpus: "0.3"
mem_reservation: "512m"
mem_limit: "1g"
pids_limit: 512