Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #19 from admin-ch/feature/docker-env
Browse files Browse the repository at this point in the history
  • Loading branch information
gstoehld authored Dec 2, 2021
2 parents 8798e85 + 627d9db commit 5850722
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Download and start the container by running
docker run -p 8080:8080 -e APIKEY=<API obtained from BAG> adminch/covidcertificate-app-verification-check-service:latest
```

The service is now exposed on port 8080 (change the first number in the `-p` argument to change the port).
The service is now exposed on port 8080 (change the first number in the `-p` argument to change the port). By default, the service will connect to the `prod` environment, which should be used to verify actual certificates. For testing and development, add `-e ENV=dev` or `-e ENV=abn` to change to the respective environment.

### Verifying certificates

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
#

# Change profile "detailed" to "simple" to use the SimpleController (i.e. simplified verify response)
spring.profiles.active=prod,simple
spring.profiles.active=${ENV:prod},simple
management.endpoints.enabled-by-default=false
server.error.whitelabel.enabled=true

# Baseurl and api-key are passed as env variables upon starting container
verifier.api-key=${APIKEY}

spring.application.name=covidCertificate-verification-check-service
spring.application.name=covidCertificate-verification-check-service

0 comments on commit 5850722

Please sign in to comment.