Files
common-server-public/nginx/nginx.conf
12600k-rog-d4 8f4d399cfd 20251209
2025-12-09 20:33:57 +08:00

59 lines
1.5 KiB
Nginx Configuration File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
include /etc/nginx/conf.d/*.conf;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
# 添加gitea的HTTP代理
server {
listen 80;
server_name gitea.deepseak.icu;
client_max_body_size 200m;
location / {
proxy_pass http://10.0.3.14:3002;
# 添加代理超时配置
proxy_connect_timeout 60s;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
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;
}
}
# 增加一个空的server用于申请证书
server {
listen 80;
server_name aaa.deepseak.icu;
}
}