Skip to content

Commit 88cbf8d

Browse files
committed
Add section about CONTEXT_PATH to Readme
1 parent 781cd54 commit 88cbf8d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ release. This directory needs to be configured in the environment variable
2424

2525
```bash
2626
git clone https://github.com/MassBank/MassBank-data.git
27-
export MB_DATA_DIRECTORY="./MassBank-data"
27+
export MB_DATA_DIRECTORY="$(realpath ./MassBank-data)"
2828
```
2929

3030
### CORS
@@ -35,6 +35,14 @@ To configure CORS you can set the environment variable `CORS_ALLOWED_ORIGINS`.
3535
export CORS_ALLOWED_ORIGINS=http://localhost:3000
3636
```
3737

38+
### CONTEXT_PATH
39+
40+
The application serves the content at the given CONTEXT_PATH. If no CONTEXT_PATH
41+
is given the application serves at root path http://localhost:8080/. To serve the
42+
application at a different path set the environment variable CONTEXT_PATH,
43+
e.g. `CONTEXT_PATH="/MassBank-export` and the server will listen on
44+
http://localhost:8080/MassBank-export.
45+
3846
### Using a Reverse Proxy
3947

4048
To make the Swagger UI work behind a reverse proxy one must configure

0 commit comments

Comments
 (0)