mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-02 11:18:09 +00:00
- 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
67 lines
1.5 KiB
YAML
67 lines
1.5 KiB
YAML
credentials: {}
|
|
docker:
|
|
services:
|
|
redis:
|
|
enabled: false
|
|
database:
|
|
enabled: true
|
|
type: postgres
|
|
xwiki:
|
|
image: xwiki
|
|
version: lts-<< defaults_applications[web-app-xwiki].docker.services.database.type >>-tomcat
|
|
name: xwiki
|
|
backup:
|
|
no_stop_required: true
|
|
cpus: 1.0
|
|
mem_reservation: 1g
|
|
mem_limit: 2g
|
|
pids_limit: 1024
|
|
volumes:
|
|
data: "xwiki_data"
|
|
features:
|
|
matomo: true
|
|
css: true
|
|
desktop: true
|
|
central_database: true
|
|
logout: true
|
|
oidc: true
|
|
ldap: false # Just OIDC or LDAP can be enabled
|
|
server:
|
|
csp:
|
|
whitelist:
|
|
worker-src:
|
|
- "blob:"
|
|
flags:
|
|
script-src-attr:
|
|
unsafe-eval: true
|
|
script-src-elem:
|
|
unsafe-inline: true
|
|
domains:
|
|
canonical:
|
|
- "x.wiki.{{ PRIMARY_DOMAIN }}"
|
|
aliases: []
|
|
rbac:
|
|
roles: {}
|
|
ldap:
|
|
local_enabled: true # Allows local login if LDAP is down
|
|
|
|
plugins:
|
|
oidc:
|
|
enabled: true
|
|
items:
|
|
- id: "org.xwiki.contrib.oidc:oidc-authenticator"
|
|
version: ""
|
|
|
|
ldap:
|
|
enabled: false
|
|
items:
|
|
- id: "org.xwiki.contrib.ldap:ldap-authenticator"
|
|
version: "9.15.7"
|
|
|
|
# Example for Matomo
|
|
matomo:
|
|
enabled: false
|
|
items:
|
|
- id: "org.xwiki.contrib:matomo"
|
|
version: "1.0"
|