Unverified Commit 68f0c809 authored by Julian's avatar Julian Committed by GitHub
Browse files

feat: basic auth protection for web frontend (#76)

parent 3fa2ddf6
......@@ -9,5 +9,6 @@ RUN yarn && yarn build
FROM nginx:1.19.10 as app
COPY --from=build ./app/build /usr/share/nginx/html
COPY nginx/default.conf.template /etc/nginx/templates/default.conf.template
COPY nginx/.htpasswd /etc/nginx/.htpasswd
ENV SERVER_PORT=80
ENV DGCA_ISSUANCE_SERVICE_URL=http://localhost:8080
......@@ -15,7 +15,7 @@ services:
internal:
dgc-issuance-service:
image: docker.pkg.github.com/eu-digital-green-certificates/dgca-issuance-service/dgca-issuance-service:0.0.9
image: docker.pkg.github.com/eu-digital-green-certificates/dgca-issuance-service/dgca-issuance-service:1.0.0
container_name: dgc-issuance-service
hostname: dgc-issuance-service
ports:
......
dgca-user:$apr1$p/TIVIAC$UPG8QZSTcVd/iJ6AhzEX5/
......@@ -2,6 +2,8 @@ server {
listen ${SERVER_PORT};
server_tokens off;
location / {
auth_basic "Secured Site";
auth_basic_user_file /etc/nginx/.htpasswd;
root /usr/share/nginx/html;
index unresolvable-file-html.html;
try_files $uri @index;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment