used forward headers strategy 'framework' by default
This commit is contained in:
parent
ed0a7d5adb
commit
79e8b2e0bb
@ -20,8 +20,8 @@ server:
|
|||||||
address: "${HTTP_BIND_ADDRESS:0.0.0.0}"
|
address: "${HTTP_BIND_ADDRESS:0.0.0.0}"
|
||||||
# Server bind port
|
# Server bind port
|
||||||
port: "${HTTP_BIND_PORT:8080}"
|
port: "${HTTP_BIND_PORT:8080}"
|
||||||
# Server forward headers strategy
|
# Server forward headers strategy. Required for SWAGGER UI when reverse proxy is used
|
||||||
forward_headers_strategy: "${HTTP_FORWARD_HEADERS_STRATEGY:NONE}"
|
forward_headers_strategy: "${HTTP_FORWARD_HEADERS_STRATEGY:framework}"
|
||||||
# Server SSL configuration
|
# Server SSL configuration
|
||||||
ssl:
|
ssl:
|
||||||
# Enable/disable SSL support
|
# Enable/disable SSL support
|
||||||
|
|||||||
@ -18,9 +18,6 @@ FROM thingsboard/openjdk17:bookworm-slim
|
|||||||
|
|
||||||
COPY start-tb-node.sh ${pkg.name}.deb /tmp/
|
COPY start-tb-node.sh ${pkg.name}.deb /tmp/
|
||||||
|
|
||||||
# Required for SWAGGER UI when reverse proxy is used
|
|
||||||
ENV HTTP_FORWARD_HEADERS_STRATEGY=framework
|
|
||||||
|
|
||||||
RUN chmod a+x /tmp/*.sh \
|
RUN chmod a+x /tmp/*.sh \
|
||||||
&& mv /tmp/start-tb-node.sh /usr/bin && \
|
&& mv /tmp/start-tb-node.sh /usr/bin && \
|
||||||
(yes | dpkg -i /tmp/${pkg.name}.deb) && \
|
(yes | dpkg -i /tmp/${pkg.name}.deb) && \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user