feat(配置): 启用验证码并添加docker-compose配置

- 在HTTP.ShowCaptcha中启用验证码功能
- 移除HTTP.APIForService.BasicAuth中的用户配置
- 新增stack.yaml文件定义redis和nightingale服务
This commit is contained in:
2025-10-03 02:41:48 +08:00
parent 47b6bc0aad
commit a97147553f
2 changed files with 42 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ WriteTimeout = 40
IdleTimeout = 120
[HTTP.ShowCaptcha]
Enable = false
Enable = true
[HTTP.APIForAgent]
Enable = true
@@ -52,7 +52,7 @@ Enable = true
[HTTP.APIForService]
Enable = false
[HTTP.APIForService.BasicAuth]
user001 = "ccc26da7b9aba533cbb263a36c07dcc5"
#user001 = "ccc26da7b9aba533cbb263a36c07dcc5"
[HTTP.JWTAuth]
# unit: min

View File

@@ -0,0 +1,40 @@
networks:
nightingale:
driver: bridge
services:
redis:
image: "redis:8-alpine"
container_name: redis
hostname: redis
restart: always
ports:
- "6379:6379"
environment:
TZ: Asia/Shanghai
networks:
- nightingale
nightingale:
image: flashcatcloud/nightingale:8.3.1
container_name: nightingale
hostname: nightingale
restart: always
environment:
GIN_MODE: release
TZ: Asia/Shanghai
WAIT_HOSTS: redis:6379
volumes:
- ./n9eetc_pg:/app/etc
ports:
- "17000:17000"
networks:
- nightingale
depends_on:
- redis
links:
- redis:redis
command: >
sh -c "/app/n9e"