Commit 24e1f00 Dominick Leppich
committed
1 parent ccbfc42 commit 24e1f00 Copy full SHA for 24e1f00
File tree 2 files changed +7
-0
lines changed
module-core/src/main/resources
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ COPY module-core/target/vocabulary-server-core.jar /opt/digiverso/vocabulary/
12
12
COPY module-core/src/main/resources/application.properties /opt/digiverso/vocabulary/
13
13
RUN sed -re "s|^(server.port=).*|\1 ${VOCABULARY_SERVER_PORT}|" \
14
14
-e "s|^#?(security.token=).*|\1 ${VOCABULARY_SERVER_TOKEN}|" \
15
+ -e "s|^#?(server.forward-headers-strategy.*)|\1 |" \
15
16
-e "s|^(spring.datasource.username=).*|\1 ${VOCABULARY_DB_USER}|" \
16
17
-e "s|^(spring.datasource.password=).*|\1 ${VOCABULARY_DB_PASSWORD}|" \
17
18
-e "s|^(spring.datasource.url=).*|\1 jdbc:mariadb://$VOCABULARY_DB_SERVER:3306/${VOCABULARY_DB_DATABASE}|" \
Original file line number Diff line number Diff line change 10
10
# Control anonymous read operations. If set to false or not set, anonymous readers will not get access
11
11
# security.anonymous.read-allowed=true
12
12
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
+
13
19
# Basic configuration
14
20
# The port the vocabulary server should listen on
15
21
server.port =8081
You can’t perform that action at this time.
0 commit comments