From 76d8e31070dd717752c269bf7748a8e0c9a76ae0 Mon Sep 17 00:00:00 2001 From: thomas loubrieu <60993872+tloubrieu-jpl@users.noreply.github.com> Date: Tue, 21 Feb 2023 10:20:49 -0800 Subject: [PATCH] set the port of the reverse proxy properly (#164) Co-authored-by: thomas loubrieu --- docker/default-config/application.properties | 10 ++++++---- docker/docker-compose.yml | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docker/default-config/application.properties b/docker/default-config/application.properties index 2416261..ef7445d 100644 --- a/docker/default-config/application.properties +++ b/docker/default-config/application.properties @@ -1,12 +1,14 @@ -springfox.documentation.swagger.v2.path=/api-docs server.contextPath=/ server.port=8080 +server.use-forward-headers=true server.forward-headers-strategy=framework -#server.use-forward-headers=true -#spring.jackson.date-format=io.swagger.RFC3339DateFormat +springdoc.api-docs.path=/api-docs +springdoc.api-docs.enabled=true +springdoc.packagesToScan=gov.nasa.pds.api.registry.controller +springdoc.pathsToMatch=/** + spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false -springfox.documentation.enabled=false debug=false logging.level.root = INFO diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 9934690..d8fc467 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -225,6 +225,7 @@ services: environment: - PROXY_URL=http://registry-api:8080/ - PROXY_PATH=/api/search/1/ + - PROXY_PORT=8443 ports: - "8443:443" networks: