feat(devops): make web port configurable via environment variables

This commit is contained in:
datadunia
2026-05-16 02:56:35 +07:00
parent ad80ad0c08
commit f9ab85e001
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -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
View File
@@ -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
+1 -1
View File
@@ -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
View File
@@ -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 "======================================"