Optimized CSP rules

This commit is contained in:
2025-06-03 14:32:15 +02:00
parent cc9b634bb8
commit ebd74db3c4
27 changed files with 57 additions and 39 deletions

View File

@@ -17,7 +17,7 @@ domains:
- "meet.{{ primary_domain }}"
csp:
flags:
script-src:
script-src-elem:
unsafe-inline: true
style-src:
unsafe-inline: true

View File

@@ -12,7 +12,7 @@ csp:
flags:
style-src:
unsafe-inline: true
script-src:
script-src-elem:
unsafe-inline: true
whitelist:
font-src:

View File

@@ -15,7 +15,7 @@ features:
central_database: true
csp:
flags:
script-src:
script-src-elem:
unsafe-inline: true
unsafe-eval: true
style-src:

View File

@@ -12,7 +12,7 @@ features:
central_database: true
csp:
flags:
script-src:
script-src-elem:
unsafe-inline: true
style-src:
unsafe-inline: true

View File

@@ -14,7 +14,7 @@ features:
recaptcha: true
csp:
flags:
script-src:
script-src-elem:
unsafe-inline: true
style-src:
unsafe-inline: true

View File

@@ -15,7 +15,7 @@ csp:
flags:
style-src:
unsafe-inline: true
script-src:
script-src-elem:
unsafe-inline: true
unsafe-eval: true
domains:

View File

@@ -7,7 +7,7 @@ public_api_activated: False # Security hol
version: "latest" # Docker Image version
features:
matomo: true
css: true
css: false
portfolio_iframe: true
central_database: true
oidc: true

View File

@@ -16,8 +16,9 @@ features:
domains:
canonical:
- "mail.{{ primary_domain }}"
flags:
style-src:
unsafe-inline: true
script-src:
unsafe-inline: true
csp:
flags:
style-src:
unsafe-inline: true
script-src-elem:
unsafe-inline: true

View File

@@ -8,12 +8,12 @@ features:
oauth2: false
csp:
whitelist:
script-src:
script-src-elem:
- https://cdn.matomo.cloud
style-src:
- https://fonts.googleapis.com
flags:
script-src:
script-src-elem:
unsafe-inline: true
unsafe-eval: true
style-src:

View File

@@ -20,7 +20,7 @@ features:
central_database: true
csp:
flags:
script-src:
script-src-elem:
unsafe-inline: true
unsafe-eval: true
style-src:
@@ -29,7 +29,7 @@ csp:
connect-src:
- "{{ primary_domain }}"
- "matrix.{{ primary_domain }}"
script-src:
script-src-elem:
- "element.{{ primary_domain }}"
- "https://cdn.jsdelivr.net"
plugins:

View File

@@ -12,7 +12,7 @@ features:
oidc: false
csp:
flags:
script-src:
script-src-elem:
unsafe-inline: true
unsafe-eval: true
style-src:
@@ -21,7 +21,7 @@ csp:
font-src:
- "data:"
- "blob:"
script-src:
script-src-elem:
- "https://cdn.jsdelivr.net"
domains:
canonical:

View File

@@ -0,0 +1,13 @@
# Update Nextcloud (manuel)
To perform a manuel Nexcloud update execute:
```bash
docker-compose exec -T -u www-data application /var/www/html/occ upgrade
docker-compose exec -T -u www-data application /var/www/html/occ maintenance:repair --include-expensive
docker-compose exec -T -u www-data application /var/www/html/occ app:update --all
docker-compose exec -T -u www-data application /var/www/html/occ db:add-missing-columns
docker-compose exec -T -u www-data application /var/www/html/occ db:add-missing-indices
docker-compose exec -T -u www-data application /var/www/html/occ db:add-missing-primary-keys
docker-compose exec -T -u www-data application /var/www/html/occ maintenance:mode --off
```

View File

@@ -3,7 +3,7 @@ csp:
flags:
style-src:
unsafe-inline: true
script-src:
script-src-elem:
unsafe-inline: true
whitelist:
font-src:

View File

@@ -15,7 +15,7 @@ features:
oauth2: true
csp:
flags:
script-src:
script-src-elem:
unsafe-inline: true
style-src:
unsafe-inline: true

View File

@@ -7,7 +7,7 @@ features:
oidc: true
csp:
flags:
script-src:
script-src-elem:
unsafe-inline: true
style-src:
unsafe-inline: true

View File

@@ -17,7 +17,7 @@ csp:
flags:
style-src:
unsafe-inline: true
script-src:
script-src-elem:
unsafe-inline: true
whitelist:
font-src:

View File

@@ -14,7 +14,7 @@ csp:
flags:
style-src:
unsafe-inline: true
script-src:
script-src-elem:
unsafe-inline: true
domains:
aliases:

View File

@@ -7,7 +7,7 @@ features:
central_database: true
csp:
flags:
script-src:
script-src-elem:
unsafe-inline: true
unsafe-eval: true
style-src:

View File

@@ -4,7 +4,7 @@ features:
portfolio_iframe: false
csp:
whitelist:
script-src:
script-src-elem:
- https://cdn.jsdelivr.net
- https://kit.fontawesome.com
style-src:
@@ -19,7 +19,7 @@ csp:
flags:
style-src:
unsafe-inline: true
script-src:
script-src-elem:
unsafe-inline: true
domains:
canonical:

View File

@@ -5,7 +5,7 @@ features:
csp:
whitelist:
script-src:
script-src-elem:
- https://cdnjs.cloudflare.com
- https://code.jquery.com
- https://cdn.jsdelivr.net
@@ -17,7 +17,7 @@ csp:
flags:
style-src:
unsafe-inline: true
script-src:
script-src-elem:
unsafe-eval: true
domains:
canonical:

View File

@@ -9,7 +9,7 @@ domains:
- "inventory.{{ primary_domain }}"
csp:
flags:
script-src:
script-src-elem:
unsafe-inline: true
style-src:
unsafe-inline: true

View File

@@ -4,7 +4,7 @@ features:
portfolio_iframe: false
csp:
flags:
script-src:
script-src-elem:
unsafe-inline: true
unsafe-eval: true
style-src:

View File

@@ -15,7 +15,7 @@ features:
csp:
flags:
script-src:
script-src-elem:
unsafe-inline: true
unsafe-eval: true
style-src:

View File

@@ -20,7 +20,7 @@ csp:
flags:
style-src:
unsafe-inline: true
script-src:
script-src-elem:
unsafe-inline: true
unsafe-eval: true
whitelist:
@@ -29,7 +29,7 @@ csp:
font-src:
- "data:"
- "https://fonts.bunny.net"
script-src:
script-src-elem:
- "https://cdn.gtranslate.net"
- "blog.{{ primary_domain }}"
style-src: