Skip to content

Commit dc94da2

Browse files
committed
Add configuration for context path
1 parent aec13a9 commit dc94da2

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ To make this work with a K8s nginx Ingress one needs to enable the property
3636
use-forwarded-headers true
3737
```
3838
in the ingress-nginx-controller ConfigMap.
39+
The application context path can be configured with the environment variable CONTEXT_PATH.
40+
If not set / is used by default.
3941

4042
## Build and Run
4143
Build the service with Maven:

src/main/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
spring.application.name=massbank-export-api
2+
server.servlet.context-path=${CONTEXT_PATH:/}
23
server.port = 8080
34
logging.level.massbank.RecordParserDefinition=ERROR
45
artifact.version=@project.version@

0 commit comments

Comments
 (0)