Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #114 from SmartColumbusOS/remove_nginx_header
Browse files Browse the repository at this point in the history
  • Loading branch information
dunson062786 authored May 21, 2020
2 parents 5e8203f + dd14c97 commit 2260571
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ RUN npm run build
RUN npm test

FROM nginx
RUN apt-get -y update &&\
apt-get install -y nginx-extras &&\
rm /etc/nginx/sites-enabled/default
COPY --from=builder /app/src/dist /usr/share/nginx/html
COPY --from=builder /app/src/run.sh /run.sh
COPY --from=builder /app/src/nginx-default.conf /etc/nginx/conf.d/default.conf.tpl
Expand Down
2 changes: 2 additions & 0 deletions nginx-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ server {
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline' *.googletagmanager.com *.google-analytics.com; style-src 'self' 'unsafe-inline'; frame-src *.auth0.com; img-src 'self' *.smartcolumbusos.com ${ADDITIONAL_CSP_HOSTS} *.amazonaws.com *.mapbox.com *.google-analytics.com *.google.com *.doubleclick.net data: blob:; connect-src 'self' *.smartcolumbusos.com ${ADDITIONAL_CSP_HOSTS} *.auth0.com *.mapbox.com *.plot.ly; worker-src blob:; block-all-mixed-content";
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";

more_clear_headers Server;

gzip on;
gzip_static on;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
Expand Down

0 comments on commit 2260571

Please sign in to comment.