Skip to content

Commit

Permalink
try nginx.template h5p fix
Browse files Browse the repository at this point in the history
  • Loading branch information
casparneumann-cap committed Nov 7, 2023
1 parent fcdf3fe commit 95aa16c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dockerconf/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ server {
listen 4000;
server_name localhost;

set $h5p_script_src_urls '${H5P_SCRIPT_SRC_URLS}';

set $csp "default-src 'self'; base-uri 'self'; script-src 'nonce-$request_id' 'strict-dynamic' 'unsafe-inline' https:; object-src 'none'; font-src 'self' data:; img-src 'self' data:; style-src 'self' 'unsafe-inline'; frame-src 'self' ${H5P_FRAME_SRC_URLS}";

set $h5pcsp "default-src 'self'; base-uri 'self'; script-src ${H5P_SCRIPT_SRC_URLS} 'unsafe-inline' https:; object-src 'none'; font-src 'self' data:; img-src 'self' ${H5P_IMG_SRC_URLS} data:; style-src 'self' 'unsafe-inline'; frame-src 'self' ${H5P_FRAME_SRC_URLS}";
Expand Down

0 comments on commit 95aa16c

Please sign in to comment.