Skip to content

Commit

Permalink
Merge pull request #2 from eu-digital-green-certificates/feat/enable-…
Browse files Browse the repository at this point in the history
…auth

Auth to Proxy added
  • Loading branch information
SchulzeStTSI authored Sep 22, 2021
2 parents 3dd3e9a + 6caac84 commit 8d4e43e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM nginx:alpine

COPY nginx/default.conf.template /etc/nginx/conf.d/default.conf

CMD sed -i "s/PROXY_AUTH/$PROXY_AUTH/g" /etc/nginx/conf.d/default.conf
EXPOSE 80
4 changes: 4 additions & 0 deletions nginx/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ server {
#### booking service
###########################################################################
location /booking {
proxy_set_header Authorization "PROXY_AUTH";
proxy_pass https://dgca-booking-demo-backend-eu-test.cfapps.eu10.hana.ondemand.com/booking;
}
location /boardingpass {
proxy_set_header Authorization "PROXY_AUTH";
proxy_pass https://dgca-booking-demo-backend-eu-test.cfapps.eu10.hana.ondemand.com/boardingpass;
}
location /validationStatus {
proxy_set_header Authorization "PROXY_AUTH";
proxy_pass https://dgca-booking-demo-backend-eu-test.cfapps.eu10.hana.ondemand.com/validationStatus;
}

Expand All @@ -31,6 +34,7 @@ server {
proxy_pass https://dgca-validation-decorator-eu-test.cfapps.eu10.hana.ondemand.com/token;
}
location /initialize {
proxy_set_header Authorization "PROXY_AUTH";
proxy_pass https://dgca-validation-decorator-eu-test.cfapps.eu10.hana.ondemand.com/initialize;
}
location /reject {
Expand Down

0 comments on commit 8d4e43e

Please sign in to comment.