Skip to content

Commit

Permalink
build(deployment): remove auth from production deploy config
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispymm committed Sep 11, 2024
1 parent 4c761ea commit 2fb9039
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,5 @@ COPY --from=staging-build /app/public /usr/share/nginx/html

FROM nginxinc/nginx-unprivileged:alpine AS production
EXPOSE 3000
COPY docker/htpasswd /etc/nginx/.htpasswd
COPY docker/nginx-production.conf /etc/nginx/conf.d/default.conf
COPY --from=production-build /app/public /usr/share/nginx/html
3 changes: 0 additions & 3 deletions docker/nginx-production.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ server {
location / {
root /usr/share/nginx/html;
index index.html index.htm;

auth_basic "New Production site";
auth_basic_user_file /etc/nginx/.htpasswd;
}

error_page 500 502 503 504 /50x.html;
Expand Down
11 changes: 0 additions & 11 deletions kubernetes-deploy-production.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ spec:
containers:
- name: moj-frontend
image: ${REGISTRY}/${REPOSITORY}:${IMAGE_TAG}
env:
- name: USERNAME
valueFrom:
secretKeyRef:
name: basic-auth
key: username
- name: PASSWORD
valueFrom:
secretKeyRef:
name: basic-auth
key: password
ports:
- containerPort: 3000
---
Expand Down

0 comments on commit 2fb9039

Please sign in to comment.