Skip to content

Commit

Permalink
Merge pull request #254 from govuk-one-login/AP-335--fix-nginx-mimetype
Browse files Browse the repository at this point in the history
AP-355 Ensure generaAPted redirect are served as text/html mime type
  • Loading branch information
PippaClarkGDS authored Sep 3, 2024
2 parents 63d71f2 + 0a1a243 commit 4b30a97
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ http {
}

include mime.types;
default_type application/octet-stream;
default_type text/html;
gzip_types text/plain text/xml text/css
text/comma-separated-values
text/javascript application/x-javascript
Expand Down
11 changes: 11 additions & 0 deletions preview-with-nginx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! /bin/bash
set -e

# generate the build directory of static content and run the html-proofer
./build-with-docker.sh

# build nginx container with build content
docker build -f DockerfileAWS --tag tech-docs-nginx .

# run nginx
docker run -p 80:80 -it tech-docs-nginx

0 comments on commit 4b30a97

Please sign in to comment.