mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-06-24 19:25:32 +02:00
Compare commits
3 Commits
5077f5f6ad
...
2541cc1c91
Author | SHA1 | Date | |
---|---|---|---|
2541cc1c91 | |||
90e9e00205 | |||
04e07b072d |
@ -128,7 +128,7 @@ class FilterModule(object):
|
||||
):
|
||||
domain = domains.get('portfolio')[0]
|
||||
sld_tld = ".".join(domain.split(".")[-2:]) # yields "example.com"
|
||||
tokens.append(f"{sld_tld}") # yields "*.example.com"
|
||||
tokens.append(f"{sld_tld}") # yields "*.example.com"
|
||||
|
||||
# whitelist
|
||||
tokens += self.get_csp_whitelist(applications, application_id, directive)
|
||||
|
@ -20,6 +20,8 @@ csp:
|
||||
unsafe-eval: true
|
||||
style-src:
|
||||
unsafe-inline: true
|
||||
script-src:
|
||||
unsafe-eval: true
|
||||
whitelist:
|
||||
connect-src:
|
||||
- wss://espocrm.{{ primary_domain }}
|
||||
|
@ -13,11 +13,14 @@ csp:
|
||||
style-src:
|
||||
- https://fonts.googleapis.com
|
||||
flags:
|
||||
script-src:
|
||||
unsafe-eval: true
|
||||
script-src-elem:
|
||||
unsafe-inline: true
|
||||
unsafe-eval: true
|
||||
style-src:
|
||||
unsafe-inline: true
|
||||
unsafe-eval: true
|
||||
domains:
|
||||
aliases:
|
||||
- "analytics.{{ primary_domain }}"
|
@ -8,7 +8,7 @@ ldap:
|
||||
users: False # Set true to filter users
|
||||
features:
|
||||
matomo: true
|
||||
css: true
|
||||
css: false # Temporary deactivated. Needs to be optimized for production use.
|
||||
portfolio_iframe: false
|
||||
ldap: true
|
||||
central_database: true
|
||||
|
@ -9,6 +9,8 @@ csp:
|
||||
flags:
|
||||
script-src-elem:
|
||||
unsafe-inline: true
|
||||
script-src:
|
||||
unsafe-inline: true
|
||||
style-src:
|
||||
unsafe-inline: true
|
||||
whitelist:
|
||||
|
@ -4,6 +4,8 @@ features:
|
||||
portfolio_iframe: false
|
||||
csp:
|
||||
flags:
|
||||
script-src:
|
||||
unsafe-eval: true
|
||||
script-src-elem:
|
||||
unsafe-inline: true
|
||||
unsafe-eval: true
|
||||
|
@ -77,7 +77,7 @@
|
||||
(application_id): {
|
||||
'csp': {
|
||||
'hashes': {
|
||||
'script-src': (
|
||||
'script-src-elem': (
|
||||
applications[application_id]['csp']['hashes'].get('script-src', [])
|
||||
+ [ matomo_tracking_code_one_liner ]
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user