From 1285db903db8c787c64ec946342d42e37ccdd779 Mon Sep 17 00:00:00 2001 From: lijiahangmax Date: Tue, 6 Jan 2026 12:38:50 +0800 Subject: [PATCH] =?UTF-8?q?:pencli2:=20=E4=BF=AE=E6=94=B9=E6=96=87?= =?UTF-8?q?=E6=A1=A3.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 5 ++++- README.md | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index c3d99f9b..a1972096 100644 --- a/.env.example +++ b/.env.example @@ -6,10 +6,13 @@ SPRING_PROFILES_ACTIVE=prod DEMO_MODE=false API_CORS=true +API_IP_HEADERS=X-Forwarded-For,X-Real-IP +# api 地址 (需要改为宿主机 IP) API_HOST=0.0.0.0 # API_URL=http://127.0.0.1:9200/orion-visor/api -API_IP_HEADERS=X-Forwarded-For,X-Real-IP +# api 密钥 (建议修改) API_EXPOSE_TOKEN=pmqeHOyZaumHm0Wt +# 加密密钥 (建议修改) SECRET_KEY=uQeacXV8b3isvKLK NGINX_SERVICE_HOST=service diff --git a/README.md b/README.md index 51980271..b3ed29da 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,10 @@ # clone git clone --depth=1 https://github.com/dromara/orion-visor cd orion-visor +# 复制配置 +cp .env.example .env +# 修改配置 +vim .env # 启动 docker compose up -d # 等待后端服务启动后 (2min±) 访问 http://localhost:1081/