Change app listen port from 8080 to 4000.

This commit is contained in:
2026-07-29 09:41:17 +03:00
parent 57d8ed7388
commit 3a864b41a7
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
# App
APP_PORT=8080
APP_PORT=4000
APP_URL=https://test200.de4ima.uk
SITE_NAME=Evilfox.cc
SECURE_COOKIES=true
@@ -21,5 +21,5 @@ MYSQL_DUMP_PATH=/data/wg.sql
# Dokploy Domain tab:
# Service = app
# Port = 8080
# Port = 4000
TZ=UTC
+3 -3
View File
@@ -20,9 +20,9 @@ ENV APP_ROOT=/app \
TEMPLATES_DIR=/app/web/templates \
STATIC_DIR=/app/web/static \
MYSQL_DUMP_PATH=/data/wg.sql \
APP_PORT=8080
EXPOSE 8080
APP_PORT=4000
EXPOSE 4000
HEALTHCHECK --interval=30s --timeout=5s --start-period=40s --retries=3 \
CMD curl -fsS http://127.0.0.1:8080/healthz >/dev/null || exit 1
CMD curl -fsS http://127.0.0.1:4000/healthz >/dev/null || exit 1
USER nobody
CMD ["/app/wg-panel"]
+3 -3
View File
@@ -25,10 +25,10 @@ services:
condition: service_healthy
# Dokploy/Traefik routes to this internal port — do NOT publish host ports.
expose:
- "8080"
- "4000"
environment:
APP_PORT: "8080"
APP_URL: ${APP_URL:-http://localhost:8080}
APP_PORT: "4000"
APP_URL: ${APP_URL:-http://localhost:4000}
SITE_NAME: ${SITE_NAME:-Evilfox.cc}
DATABASE_URL: postgres://${POSTGRES_USER:-wg}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB:-wg}?sslmode=disable
SESSION_SECRET: ${SESSION_SECRET:?set SESSION_SECRET}
+2 -2
View File
@@ -24,8 +24,8 @@ type Config struct {
func Load() Config {
return Config{
AppPort: getenv("APP_PORT", "8080"),
AppURL: strings.TrimRight(getenv("APP_URL", "http://localhost:8080"), "/"),
AppPort: getenv("APP_PORT", "4000"),
AppURL: strings.TrimRight(getenv("APP_URL", "http://localhost:4000"), "/"),
SiteName: getenv("SITE_NAME", "Evilfox.cc"),
DatabaseURL: getenv("DATABASE_URL", "postgres://wg:wg@localhost:5432/wg?sslmode=disable"),
SessionSecret: getenv("SESSION_SECRET", "change-me-session-secret-32chars!!"),