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
APP_PORT=8080 APP_PORT=4000
APP_URL=https://test200.de4ima.uk APP_URL=https://test200.de4ima.uk
SITE_NAME=Evilfox.cc SITE_NAME=Evilfox.cc
SECURE_COOKIES=true SECURE_COOKIES=true
@@ -21,5 +21,5 @@ MYSQL_DUMP_PATH=/data/wg.sql
# Dokploy Domain tab: # Dokploy Domain tab:
# Service = app # Service = app
# Port = 8080 # Port = 4000
TZ=UTC TZ=UTC
+3 -3
View File
@@ -20,9 +20,9 @@ ENV APP_ROOT=/app \
TEMPLATES_DIR=/app/web/templates \ TEMPLATES_DIR=/app/web/templates \
STATIC_DIR=/app/web/static \ STATIC_DIR=/app/web/static \
MYSQL_DUMP_PATH=/data/wg.sql \ MYSQL_DUMP_PATH=/data/wg.sql \
APP_PORT=8080 APP_PORT=4000
EXPOSE 8080 EXPOSE 4000
HEALTHCHECK --interval=30s --timeout=5s --start-period=40s --retries=3 \ 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 USER nobody
CMD ["/app/wg-panel"] CMD ["/app/wg-panel"]
+3 -3
View File
@@ -25,10 +25,10 @@ services:
condition: service_healthy condition: service_healthy
# Dokploy/Traefik routes to this internal port — do NOT publish host ports. # Dokploy/Traefik routes to this internal port — do NOT publish host ports.
expose: expose:
- "8080" - "4000"
environment: environment:
APP_PORT: "8080" APP_PORT: "4000"
APP_URL: ${APP_URL:-http://localhost:8080} APP_URL: ${APP_URL:-http://localhost:4000}
SITE_NAME: ${SITE_NAME:-Evilfox.cc} SITE_NAME: ${SITE_NAME:-Evilfox.cc}
DATABASE_URL: postgres://${POSTGRES_USER:-wg}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB:-wg}?sslmode=disable DATABASE_URL: postgres://${POSTGRES_USER:-wg}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB:-wg}?sslmode=disable
SESSION_SECRET: ${SESSION_SECRET:?set SESSION_SECRET} SESSION_SECRET: ${SESSION_SECRET:?set SESSION_SECRET}
+2 -2
View File
@@ -24,8 +24,8 @@ type Config struct {
func Load() Config { func Load() Config {
return Config{ return Config{
AppPort: getenv("APP_PORT", "8080"), AppPort: getenv("APP_PORT", "4000"),
AppURL: strings.TrimRight(getenv("APP_URL", "http://localhost:8080"), "/"), AppURL: strings.TrimRight(getenv("APP_URL", "http://localhost:4000"), "/"),
SiteName: getenv("SITE_NAME", "Evilfox.cc"), SiteName: getenv("SITE_NAME", "Evilfox.cc"),
DatabaseURL: getenv("DATABASE_URL", "postgres://wg:wg@localhost:5432/wg?sslmode=disable"), DatabaseURL: getenv("DATABASE_URL", "postgres://wg:wg@localhost:5432/wg?sslmode=disable"),
SessionSecret: getenv("SESSION_SECRET", "change-me-session-secret-32chars!!"), SessionSecret: getenv("SESSION_SECRET", "change-me-session-secret-32chars!!"),