server { listen [::]:80; listen 80; server_name xmpp.chapril.org *.xmpp.chapril.org upload-xmpp.chapril.org; root /var/www/xmpp.chapril.org/public_html; # Other locations # ConverseJS location / { root /var/www/xmpp.chapril.org/public_html/current/; index index-chapril.html; add_header "Content-Security-Policy" "script-src 'self' 'wasm-unsafe-eval' https://xmpp.chapril.org/"; location ~ \.(ttf|ttc|otf|eot|woff|woff2|font\.css|css|js)$ { add_header "Access-Control-Allow-Origin" "*"; } } # Other locations }