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 dd38229 commit 9c895ad
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# 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 @@ -11,10 +14,15 @@ 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=20416
STAG_GATEWAY_PORT=20426
PROD_GATEWAY_PORT=20436
DEV_BACKEND_PORT=20414
STAG_BACKEND_PORT=20424
PROD_BACKEND_PORT=20434
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}

0 comments on commit 9c895ad

Please sign in to comment.