ansible-role-docker_mastodon/templates/1_vhost_additional.conf
2022-05-29 12:20:38 +02:00

12 lines
381 B
Text

# {{ ansible_managed }}
Header set Content-Security-Policy "default-src 'self' data:; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; object-src 'none'"
# websockets
<LocationMatch ^/api/v1/streaming/>
ProxyPass ws://{{ docker_mastodon_rp_docker_host }}
</LocationMatch>
<Location />
ProxyErrorOverride off
</Location>