Skip to content

Commit

Permalink
Update .env
Browse files Browse the repository at this point in the history
  • Loading branch information
jifollan authored and GitHub Enterprise committed Mar 20, 2025
1 parent 08b1f78 commit d88cf49
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .env
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# Group and domain settings
GROUP_ID=04
DOMAIN=localhost
URL_PREFIX=http://
PORT_PREFIX=2

# Environment postfixes
DEV_POSTFIX=1
STAG_POSTFIX=2
PROD_POSTFIX=3
Expand All @@ -14,15 +11,13 @@ BACKEND_POSTFIX=4
FRONTEND_POSTFIX=5
GATEWAY_POSTFIX=6

# Precomputed port prefixes
DEV_PORT_PREFIX=${PORT_PREFIX}${GROUP_ID}${DEV_POSTFIX}
STAG_PORT_PREFIX=${PORT_PREFIX}${GROUP_ID}${STAG_POSTFIX}
PROD_PORT_PREFIX=${PORT_PREFIX}${GROUP_ID}${PROD_POSTFIX}

# Precomputed full port numbers
DEV_GATEWAY_PORT=${DEV_PORT_PREFIX}${GATEWAY_POSTFIX}
STAG_GATEWAY_PORT=${STAG_PORT_PREFIX}${GATEWAY_POSTFIX}
PROD_GATEWAY_PORT=${PROD_PORT_PREFIX}${GATEWAY_POSTFIX}
DEV_BACKEND_PORT=${DEV_PORT_PREFIX}${BACKEND_POSTFIX}
STAG_BACKEND_PORT=${STAG_PORT_PREFIX}${BACKEND_POSTFIX}
PROD_BACKEND_PORT=${PROD_PORT_PREFIX}${BACKEND_POSTFIX}
DEV_GATEWAY_PORT=20416
STAG_GATEWAY_PORT=20426
PROD_GATEWAY_PORT=20436
DEV_BACKEND_PORT=20414
STAG_BACKEND_PORT=20424
PROD_BACKEND_PORT=20434
DEV_FRONTEND_PORT=20415
STAG_FRONTEND_PORT=20425
PROD_FRONTEND_PORT=20435

0 comments on commit d88cf49

Please sign in to comment.