Download deploy/nginx.conf from WWsCa/VetNet-LCPS: direct link, hf CLI and curl.
- Browser
- Download file 1.41 kB
-
https://huggingface.co/WWsCa/VetNet-LCPS/resolve/main/deploy/nginx.conf
- Command line
-
hf download hf://WWsCa/VetNet-LCPS/deploy/nginx.conf
-
curl -L -o nginx.conf https://huggingface.co/WWsCa/VetNet-LCPS/resolve/main/deploy/nginx.conf
1.41 kB
| # ================================================================ | |
| # VetCopilot Nginx 主配置 | |
| # ================================================================ | |
| user nginx; | |
| worker_processes auto; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| use epoll; | |
| multi_accept on; | |
| } | |
| http { | |
| include /etc/nginx/mime.types; | |
| default_type application/octet-stream; | |
| # 日志格式(含请求耗时) | |
| log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
| '$status $body_bytes_sent "$http_referer" ' | |
| '"$http_user_agent" $request_time'; | |
| access_log /var/log/nginx/access.log main buffer=16k; | |
| error_log /var/log/nginx/error.log warn; | |
| sendfile on; | |
| tcp_nopush on; | |
| tcp_nodelay on; | |
| # 安全头 | |
| server_tokens off; | |
| # 超时配置 | |
| keepalive_timeout 65; | |
| client_body_timeout 30; | |
| client_header_timeout 30; | |
| send_timeout 30; | |
| # 上传大小限制 | |
| client_max_body_size 100m; | |
| # Gzip 压缩 | |
| gzip on; | |
| gzip_min_length 1000; | |
| gzip_types text/plain text/css application/json application/javascript text/xml application/xml text/javascript image/svg+xml; | |
| gzip_vary on; | |
| # 安全限制 | |
| limit_req_zone $binary_remote_addr zone=api_limit:10m rate=10r/s; | |
| limit_conn_zone $binary_remote_addr zone=conn_limit:10m; | |
| include /etc/nginx/conf.d/*.conf; | |
| } | |