From 5cfbe741ee02e6e19d523ae740f505d0044b0107 Mon Sep 17 00:00:00 2001 From: Cory Date: Thu, 22 Jul 2021 09:06:35 +0100 Subject: [PATCH 1/2] feat: nginx proxy for pdf service --- .nginx/nginx.conf.template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.nginx/nginx.conf.template b/.nginx/nginx.conf.template index 16e4859..4f6cbdc 100644 --- a/.nginx/nginx.conf.template +++ b/.nginx/nginx.conf.template @@ -15,6 +15,12 @@ http { proxy_redirect http://${PREFIX}-localstack:4566/ http://localhost:4566/; } + location /pdf { + rewrite /pdf/(.*) /$1 break; + proxy_pass http://${PREFIX}-pdf-service:4001/; + proxy_set_header Host $host; + } + location / { proxy_pass http://${PREFIX}-client:80/; proxy_set_header Host $host; From 25a6cd8c342c0051188c87eb4c195fe7bed1658f Mon Sep 17 00:00:00 2001 From: Cory Date: Thu, 22 Jul 2021 09:29:11 +0100 Subject: [PATCH 2/2] refactor: remove comment --- docker-compose.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 75af6f8..4ee29aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -65,7 +65,7 @@ services: - 8984:8984 editor-client: - image: liberoadmin/editor-client:${TAG-latest} + image: libero/editor-client:local container_name: ${PREFIX-editor}-client restart: unless-stopped depends_on: @@ -96,7 +96,6 @@ services: - ARTICLE_STORE_PATH=http://${PREFIX-editor}-article-store:8080/articles/ - GENERATION_RESOURCES_PATH=http://nginx:80/api/v1/articles/ - PORT=4001 - # TODO: UPDATE THESE VALUES TO BE MOCK SERVICE ENDPOINTS - GENERATION_START_URL=http://editor-mock-service:1080/pdf-generation/start - GENERATION_STATUS_URL=http://editor-mock-service:1080/pdf-generation/status - GENERATION_API_KEY=mySuperSecretApiKey