Browse Source

🐛 Fix frontend hijacking /docs in development (#6)

* 🐛 Fix frontend hijacking /docs in development

* 🐛 Fix frontend Dockerfile copying Nginx config
pull/13907/head
Sebastián Ramírez 6 years ago
committed by GitHub
parent
commit
151f7ed79b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      {{cookiecutter.project_slug}}/frontend/Dockerfile
  2. 9
      {{cookiecutter.project_slug}}/frontend/nginx-backend-not-found.conf

1
{{cookiecutter.project_slug}}/frontend/Dockerfile

@ -25,3 +25,4 @@ FROM nginx:1.15
COPY --from=build-stage /app/dist/ /usr/share/nginx/html COPY --from=build-stage /app/dist/ /usr/share/nginx/html
COPY --from=build-stage /nginx.conf /etc/nginx/conf.d/default.conf COPY --from=build-stage /nginx.conf /etc/nginx/conf.d/default.conf
COPY ./nginx-backend-not-found.conf /etc/nginx/extra-conf.d/backend-not-found.conf

9
{{cookiecutter.project_slug}}/frontend/nginx-backend-not-found.conf

@ -0,0 +1,9 @@
location /api {
return 404;
}
location /docs {
return 404;
}
location /redoc {
return 404;
}
Loading…
Cancel
Save