包含 FastAPI 应用、Nginx 反向代理配置、systemd 服务及腾讯云 pip 源配置。 Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
337 B
Plaintext
13 lines
337 B
Plaintext
server {
|
|
listen 80;
|
|
server_name hair.xiangsilian.com;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
}
|