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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
5 deletions
-
application/src/main/resources/thingsboard.yml
-
msa/tb-node/docker/Dockerfile
|
|
|
@ -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 |
|
|
|
|
|
|
|
@ -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) && \ |
|
|
|
|