mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	Solved different bugs e.g. csp and optimized deploy help
This commit is contained in:
		| @@ -9,7 +9,7 @@ domain:                   "{{primary_domain}}"              # The main domain fr | ||||
| credentials:                                      | ||||
| features: | ||||
|   matomo:                 true | ||||
|   css:                    true | ||||
|   css:                    false | ||||
|   portfolio_iframe:       false                             # Deactivated mailu iframe loading until keycloak supports it | ||||
|   oidc:                   true | ||||
|   central_database:       false                             # Deactivate central database for mailu, I don't know why the database deactivation is necessary | ||||
| @@ -20,5 +20,5 @@ csp: | ||||
|   flags: | ||||
|     style-src: | ||||
|       unsafe-inline:        true | ||||
|     script-src-elem: | ||||
|     script-src: | ||||
|       unsafe-inline:        true | ||||
| @@ -38,9 +38,12 @@ | ||||
|  | ||||
| - name: Wait until the MariaDB container is healthy | ||||
|   community.docker.docker_container_info: | ||||
|     name: "{{applications.mariadb.hostname }}" | ||||
|     name: "{{ applications.mariadb.hostname }}" | ||||
|   register: db_info | ||||
|   until: db_info.containers[0].State.Health.Status == "healthy" | ||||
|   until: | ||||
|   - db_info.containers is defined | ||||
|   - db_info.containers | length > 0 | ||||
|   - db_info.containers[0].State.Health.Status == "healthy" | ||||
|   retries: 30 | ||||
|   delay: 5 | ||||
|   when: | ||||
|   | ||||
| @@ -22,7 +22,7 @@ oidc: | ||||
| credentials: | ||||
| features: | ||||
|   matomo:                       true | ||||
|   css:                          true | ||||
|   css:                          false | ||||
|   portfolio_iframe:             false | ||||
|   ldap:                         true | ||||
|   oidc:                         true | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
| - name: "Include role nginx-domain-setup for {{ application_id }}" | ||||
|   include_role: | ||||
|     name: nginx-domain-setup | ||||
|   loop: "{{ domains.wordpress }}" | ||||
|   loop: "{{ applications[application_id].domains.canonical }}" | ||||
|   loop_control: | ||||
|     loop_var: domain | ||||
|   vars: | ||||
|   | ||||
| @@ -22,6 +22,7 @@ csp: | ||||
|       unsafe-inline:  true | ||||
|     script-src-elem: | ||||
|       unsafe-inline:  true | ||||
|     script-src: | ||||
|       unsafe-eval:    true | ||||
|   whitelist: | ||||
|     worker-src: | ||||
| @@ -34,6 +35,20 @@ csp: | ||||
|       - "blog.{{ primary_domain }}" | ||||
|     style-src: | ||||
|       - "https://fonts.bunny.net" | ||||
|     frame-src: | ||||
|       - "blob:" | ||||
|       - "*.{{ primary_domain }}" | ||||
|     #frame-src: >- | ||||
|     #  {{ | ||||
|     #    ['*.{}'.format(primary_domain)] | ||||
|     #    + | ||||
|     #    ( | ||||
|     #      applications.wordpress.domains.canonical | ||||
|     #      | default([]) | ||||
|     #      | map('regex_replace', '^(.*)$', 'blob:\g<1>') | ||||
|     #      | list | ||||
|     #    ) | ||||
|     #  }} | ||||
| domains: | ||||
|   canonical: | ||||
|     - "blog.{{ primary_domain }}" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user