251003 frontend 2
This commit is contained in:
@@ -85,7 +85,7 @@ services:
|
|||||||
JWT_EXPIRES_IN: "12h"
|
JWT_EXPIRES_IN: "12h"
|
||||||
PASSWORD_SALT_ROUNDS: "10"
|
PASSWORD_SALT_ROUNDS: "10"
|
||||||
FRONTEND_ORIGIN: "https://lcbp3.np-dms.work"
|
FRONTEND_ORIGIN: "https://lcbp3.np-dms.work"
|
||||||
CORS_ORIGINS: "https://backend.np-dms.work,http://localhost:3000,http://127.0.0.1:3000"
|
CORS_ORIGINS: "https://lcbp3.np-dms.work,http://localhost:3000,http://127.0.0.1:3000"
|
||||||
RATE_LIMIT_WINDOW_MS: "900000"
|
RATE_LIMIT_WINDOW_MS: "900000"
|
||||||
RATE_LIMIT_MAX: "200"
|
RATE_LIMIT_MAX: "200"
|
||||||
BACKEND_LOG_DIR: "/app/logs"
|
BACKEND_LOG_DIR: "/app/logs"
|
||||||
@@ -133,6 +133,7 @@ services:
|
|||||||
NEXT_PUBLIC_AUTH_MODE: "cookie"
|
NEXT_PUBLIC_AUTH_MODE: "cookie"
|
||||||
NEXT_PUBLIC_DEBUG_AUTH: "1"
|
NEXT_PUBLIC_DEBUG_AUTH: "1"
|
||||||
NEXT_TELEMETRY_DISABLED: "1"
|
NEXT_TELEMETRY_DISABLED: "1"
|
||||||
|
INTERNAL_API_BASE: "http://backend:3001"
|
||||||
JWT_ACCESS_SECRET: "9a6d8705a6695ab9bae4ca1cd46c72a6379aa72404b96e2c5b59af881bb55c639dd583afdce5a885c68e188da55ce6dbc1fb4aa9cd4055ceb51507e56204e4ca"
|
JWT_ACCESS_SECRET: "9a6d8705a6695ab9bae4ca1cd46c72a6379aa72404b96e2c5b59af881bb55c639dd583afdce5a885c68e188da55ce6dbc1fb4aa9cd4055ceb51507e56204e4ca"
|
||||||
JWT_REFRESH_SECRET: "743e798bb10d6aba168bf68fc3cf8eff103c18bd34f1957a3906dc87987c0df139ab72498f2fe20d6c4c580f044ccba7d7bfa4393ee6035b73ba038f28d7480c"
|
JWT_REFRESH_SECRET: "743e798bb10d6aba168bf68fc3cf8eff103c18bd34f1957a3906dc87987c0df139ab72498f2fe20d6c4c580f044ccba7d7bfa4393ee6035b73ba038f28d7480c"
|
||||||
expose:
|
expose:
|
||||||
@@ -151,10 +152,8 @@ services:
|
|||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
[
|
[
|
||||||
"CMD",
|
"CMD-SHELL",
|
||||||
"wget",
|
'wget -qO- http://127.0.0.1:3000/health | grep -q ''"ok":true''',
|
||||||
"-qO-",
|
|
||||||
'http://127.0.0.1:3000/health | grep -q ''"ok":true''',
|
|
||||||
]
|
]
|
||||||
interval: 15s
|
interval: 15s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
"version": "0.7.0",
|
"version": "0.7.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev -p 3000",
|
"dev": "next dev -H 0.0.0.0 -p 3000",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start -p 3000",
|
"start": "next start -H 0.0.0.0 -p 3000",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"format": "prettier --write ."
|
"format": "prettier --write ."
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user