diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 473ccbc6..6e4e8f6a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,8 +15,6 @@ on: - 'infrastructure/**' - 'package.json' - - jobs: set_environment_name: @@ -252,7 +250,7 @@ jobs: restart: always ports: - 4000:4000 - administration: + admin: image: $ECR_REGISTRY/$ECR_REPOSITORY_ADMIN:$IMAGE_TAG restart: always ports: @@ -268,7 +266,7 @@ jobs: depends_on: - api - client - - administration + - admin EOF - name: Generate zip file diff --git a/infrastructure/source_bundle/proxy/conf.d/application.conf b/infrastructure/source_bundle/proxy/conf.d/application.conf index ddfc6154..0a548521 100644 --- a/infrastructure/source_bundle/proxy/conf.d/application.conf +++ b/infrastructure/source_bundle/proxy/conf.d/application.conf @@ -6,8 +6,8 @@ upstream client { server client:3000; } -upstream administration { - server administration:1000; +upstream admin { + server admin:1000; } server { @@ -41,8 +41,9 @@ server { proxy_pass_request_headers on; client_max_body_size 200m; } - location /administration/ { - proxy_pass http://administration; + location /admin/ { + rewrite ^/admin/?(.*)$ /$1 break; + proxy_pass http://admin; proxy_http_version 1.1; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host;