Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP-355 Ensure generaAPted redirect are served as text/html mime type #254

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

pauldougan
Copy link
Contributor

AP-355

Why

Explain why these changes are necessary.

What

We need to ensure that page redirects configured in config/tech-docs.yml are served with the right mime type rather than as binaries and downloaded

  • Update default mime type in nginx.conf
  • add a helper script preview-with-nginx.sh to build content, dockerize nginx and run locally on port 80

Technical writer support

Do you need a tech writer's support, for example to review your PR? YES

How to review

  • git clone https://github.com/govuk-one-login/tech-docs
  • git checkout branch
  • build, dockerize and run ngin in a container locally using./preview-with-nginx.sh
  • open http://localhost/go-live and sure it redirects correctly

Changelog

This is a bugfix pr to address an issue with redirects so not required

Confirm

  • I have checked if any docs change here also requires updates to other repositories (ADRs / RFCs, README.md, Team Manual, elsewhere in these docs)
  • Where there is any overlap I have updated or opened a PR for corresponding changes

We need to ensure that page redirects configured in config/tech-docs.yml are served with the right mime type rather than as binaries

- Update default mime type in nginx.conf
- add a helper script preview-with-nginx.sh to build content, dockerize nginx and run locally on port 80
@PippaClarkGDS PippaClarkGDS merged commit 4b30a97 into main Sep 3, 2024
2 checks passed
@PippaClarkGDS PippaClarkGDS deleted the AP-335--fix-nginx-mimetype branch September 3, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants