From c34659ae8b41b10c76fbb3d4d314087d6afea54e Mon Sep 17 00:00:00 2001 From: j8seangel Date: Wed, 5 Jun 2024 18:44:58 +0200 Subject: [PATCH] fix nginx.conf --- apps/image-labeler/docker-compose.yaml | 1 + apps/image-labeler/nginx.conf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/image-labeler/docker-compose.yaml b/apps/image-labeler/docker-compose.yaml index 3b5c800663..681bdfb279 100644 --- a/apps/image-labeler/docker-compose.yaml +++ b/apps/image-labeler/docker-compose.yaml @@ -10,4 +10,5 @@ services: env_file: - .env environment: + - PORT=80 - API_GATEWAY=https://gateway.api.dev.globalfishingwatch.org diff --git a/apps/image-labeler/nginx.conf b/apps/image-labeler/nginx.conf index 8c7c2edf2f..2fa5e5fc9b 100644 --- a/apps/image-labeler/nginx.conf +++ b/apps/image-labeler/nginx.conf @@ -42,7 +42,7 @@ http { location / { # auth_basic ${BASIC_AUTH}; # auth_basic_user_file /etc/nginx/.htpasswd; - try_files $uri $uri/ /index.html; + try_files /index.html =404; } } }