mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-18 20:15:35 +00:00
Solved different bugs e.g. csp and optimized deploy help
This commit is contained in:
@@ -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