feat(devops): make web port configurable via environment variables
This commit is contained in:
@@ -21,6 +21,7 @@ SERVER_SALT=GantiDenganKunciGaramUntukWireGuard256Bit
|
||||
NFTABLES_TABLE=nexusguard
|
||||
IPAM_POOL=10.8.0.0/16
|
||||
API_PORT=8080
|
||||
WEB_PORT=80
|
||||
|
||||
# 5. Dashboard UI (Frontend Build Configuration)
|
||||
# URL API yang akan diakses oleh web browser client
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ services:
|
||||
# Inject the root .env variable into the frontend build process
|
||||
VITE_API_BASE_URL: ${VITE_API_BASE_URL}
|
||||
ports:
|
||||
- "80:80"
|
||||
- "${WEB_PORT:-80}:80"
|
||||
depends_on:
|
||||
- server-core
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -48,6 +48,6 @@ docker-compose up -d
|
||||
|
||||
echo "======================================"
|
||||
echo " NexusGuard is successfully running! "
|
||||
echo " Web Dashboard : http://localhost"
|
||||
echo " Web Dashboard : http://localhost:${WEB_PORT:-80}"
|
||||
echo " API Port : ${API_PORT:-8080}"
|
||||
echo "======================================"
|
||||
|
||||
+1
-1
@@ -29,6 +29,6 @@ docker image prune -f
|
||||
|
||||
echo "======================================"
|
||||
echo " Upgrade & Rebuild complete! "
|
||||
echo " Dashboard : http://localhost"
|
||||
echo " Dashboard : http://localhost:${WEB_PORT:-80}"
|
||||
echo " API Port : ${API_PORT:-8080}"
|
||||
echo "======================================"
|
||||
|
||||
Reference in New Issue
Block a user