Browse Source

Merge pull request #11425 from YevhenBondarenko/fix/swagger-https

Fix Swagger issues when reverse proxy is used
pull/11458/head
Viacheslav Klimov 2 years ago
committed by GitHub
parent
commit
adb1daeea6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      application/src/main/resources/thingsboard.yml
  2. 3
      msa/tb-node/docker/Dockerfile

4
application/src/main/resources/thingsboard.yml

@ -20,8 +20,8 @@ server:
address: "${HTTP_BIND_ADDRESS:0.0.0.0}"
# Server bind port
port: "${HTTP_BIND_PORT:8080}"
# Server forward headers strategy
forward_headers_strategy: "${HTTP_FORWARD_HEADERS_STRATEGY:NONE}"
# Server forward headers strategy. Required for SWAGGER UI when reverse proxy is used
forward_headers_strategy: "${HTTP_FORWARD_HEADERS_STRATEGY:framework}"
# Server SSL configuration
ssl:
# Enable/disable SSL support

3
msa/tb-node/docker/Dockerfile

@ -18,9 +18,6 @@ FROM thingsboard/openjdk17:bookworm-slim
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 \
&& mv /tmp/start-tb-node.sh /usr/bin && \
(yes | dpkg -i /tmp/${pkg.name}.deb) && \

Loading…
Cancel
Save