feat
This commit is contained in:
22
backend/etc/agent.prod.yaml
Normal file
22
backend/etc/agent.prod.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
env: development
|
||||||
|
port: "9150"
|
||||||
|
dsn: "postgres://postgres:Weidong2023~!@8.137.107.29:19432/agent_dev?sslmode=disable"
|
||||||
|
storage_dir: "./data/files"
|
||||||
|
max_upload_bytes: 52428800
|
||||||
|
auth_secret: "development-auth-secret-change-me"
|
||||||
|
system_ai_key: ""
|
||||||
|
ai_key_encryption_secret: "development-ai-key-secret-change-me"
|
||||||
|
allowed_origins:
|
||||||
|
- "http://localhost:5173"
|
||||||
|
- "http://127.0.0.1:5173"
|
||||||
|
- "http://localhost:5180"
|
||||||
|
- "http://127.0.0.1:5180"
|
||||||
|
- "http://localhost:4173"
|
||||||
|
- "http://127.0.0.1:4173"
|
||||||
|
- "http://localhost:4174"
|
||||||
|
- "http://127.0.0.1:4174"
|
||||||
|
- "http://localhost:4175"
|
||||||
|
- "http://127.0.0.1:4175"
|
||||||
|
- "http://localhost:4176"
|
||||||
|
- "http://127.0.0.1:4176"
|
||||||
|
- "http://tauri.localhost"
|
||||||
20
deploy/agent.senlin.ai.conf
Normal file
20
deploy/agent.senlin.ai.conf
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name agent.senlin.ai;
|
||||||
|
root /data/senlin/web_v1;
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
location ^~ /api {
|
||||||
|
include cors.conf;
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_redirect off;
|
||||||
|
add_header X-Backend-Header $upstream_http_custom_header;
|
||||||
|
proxy_pass http://localhost:9150;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
6
deploy/www.senlin.ai.conf
Normal file
6
deploy/www.senlin.ai.conf
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name www.senlin.ai senlin.ai;
|
||||||
|
root /data/senlin/site;
|
||||||
|
index index.html;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user