mirror of
https://git.evilfox.cc/test2/wg.git
synced 2026-07-31 11:53:22 +00:00
Change app listen port from 8080 to 4000.
This commit is contained in:
+2
-2
@@ -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
@@ -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
@@ -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}
|
||||
|
||||
@@ -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!!"),
|
||||
|
||||
Reference in New Issue
Block a user