Files
kami_frontend/deploy/nginx/default.conf
danial 85a2da5e2f ci: set up continuous integration and delivery pipeline
- Add .drone.yml file to configure CI/CD pipeline
- Set up Docker build and push to private registry
- Add deployment configuration for development and production environments
- Include health check and environment variable support
2025-03-30 22:34:38 +08:00

23 lines
651 B
Plaintext

server {
listen 12400;
server_name localhost;
client_max_body_size 100M; # 全局设置,影响所有的 server 块
location / {
root /app;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://NGINX_CONFIG_URL:12401/api/;
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_connect_timeout 120;
proxy_send_timeout 300;
proxy_read_timeout 300;
proxy_http_version 1.1;
}
}