Skip to content

Commit

Permalink
rename administration service to admin, reroute nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Oct 15, 2024
1 parent fba9792 commit 2fe1ecc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ on:
- 'infrastructure/**'
- 'package.json'



jobs:

set_environment_name:
Expand Down Expand Up @@ -252,7 +250,7 @@ jobs:
restart: always
ports:
- 4000:4000
administration:
admin:
image: $ECR_REGISTRY/$ECR_REPOSITORY_ADMIN:$IMAGE_TAG
restart: always
ports:
Expand All @@ -268,7 +266,7 @@ jobs:
depends_on:
- api
- client
- administration
- admin
EOF
- name: Generate zip file
Expand Down
9 changes: 5 additions & 4 deletions infrastructure/source_bundle/proxy/conf.d/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ upstream client {
server client:3000;
}

upstream administration {
server administration:1000;
upstream admin {
server admin:1000;
}

server {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2fe1ecc

Please sign in to comment.