Skip to content

Commit 24e1f00

Browse files
author
Dominick Leppich
committed
task: add proxy configuration template
1 parent ccbfc42 commit 24e1f00

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ COPY module-core/target/vocabulary-server-core.jar /opt/digiverso/vocabulary/
1212
COPY module-core/src/main/resources/application.properties /opt/digiverso/vocabulary/
1313
RUN sed -re "s|^(server.port=).*|\1${VOCABULARY_SERVER_PORT}|" \
1414
-e "s|^#?(security.token=).*|\1${VOCABULARY_SERVER_TOKEN}|" \
15+
-e "s|^#?(server.forward-headers-strategy.*)|\1|" \
1516
-e "s|^(spring.datasource.username=).*|\1${VOCABULARY_DB_USER}|" \
1617
-e "s|^(spring.datasource.password=).*|\1${VOCABULARY_DB_PASSWORD}|" \
1718
-e "s|^(spring.datasource.url=).*|\1jdbc:mariadb://$VOCABULARY_DB_SERVER:3306/${VOCABULARY_DB_DATABASE}|" \

module-core/src/main/resources/application.properties

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
# Control anonymous read operations. If set to false or not set, anonymous readers will not get access
1111
#security.anonymous.read-allowed=true
1212

13+
# Proxy / Gateway configuration
14+
# If the vocabulary server is behind a proxy, it will possibly generate wrong URLs because it is called with an internal
15+
# IP or hostname. This can be controlled by X-Forwarded-* Headers (e. g. X-Forwarded-Host: example.com). To enable this,
16+
# uncomment the following line.
17+
#server.forward-headers-strategy=framework
18+
1319
# Basic configuration
1420
# The port the vocabulary server should listen on
1521
server.port=8081

0 commit comments

Comments
 (0)