Skip to content

Commit

Permalink
Update emr-3-dev to allow requests to jsdeliver CDN temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Sep 20, 2022
1 parent 52dbb68 commit 0e3a09d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions files/emr-3-dev/proxy.conf
Expand Up @@ -25,9 +25,9 @@ http {
default "false";
"https://formbuilder.o3.openmrs.org" "true";
}

map $request_uri $csp_header {
default "default-src 'self' 'unsafe-inline' https://fonts.gstatic.com/ https://spa-modules.nyc3.digitaloceanspaces.com/ https://spa-modules.nyc3.cdn.digitaloceanspaces.com/; base-uri 'self'; font-src 'self' https://fonts.gstatic.com/; img-src 'self' data:; frame-ancestors 'self';";
default "default-src 'self' 'unsafe-inline' https://fonts.gstatic.com/ https://spa-modules.nyc3.digitaloceanspaces.com/ https://spa-modules.nyc3.cdn.digitaloceanspaces.com/ https://cdn.jsdelivr.net/; base-uri 'self'; font-src 'self' https://fonts.gstatic.com/; img-src 'self' data:; frame-ancestors 'self';";
"~^/openmrs/(?:admin|dictionary|module|patientDashboard.form)/" "default-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; base-uri 'self'; font-src 'self'; frame-ancestors 'self';";
"~^/openmrs/owa" "default-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; base-uri 'self'; font-src 'self' data:; img-src 'self' data:; frame-ancestors 'self';";
}
Expand Down Expand Up @@ -129,15 +129,15 @@ http {
return 204;
}

proxy_pass http://openmrs:8080/openmrs/ws/rest/v1;
proxy_pass http://backend:8080/openmrs/ws/rest/v1;
}

proxy_pass http://openmrs:8080;
proxy_pass http://backend:8080;
}

# in case you end-up at /, we send you to the frontend
location = / {
return 301 openmrs/spa;
}
}
}
}

0 comments on commit 0e3a09d

Please sign in to comment.