You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
583 B
25 lines
583 B
server { |
|
# 自定义访问端口 |
|
listen 3002; |
|
client_max_body_size 100M; |
|
|
|
# 服务名称 |
|
server_name localhost; |
|
|
|
# 代理访问根地址 |
|
root /data; |
|
|
|
#设置转发请求头参数 |
|
proxy_connect_timeout 15s; |
|
proxy_send_timeout 15s; |
|
proxy_read_timeout 15s; |
|
proxy_set_header Host $http_host; |
|
proxy_set_header X-Real-IP $remote_addr; |
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
# 代理访问 |
|
location / { |
|
try_files $uri $uri/ /index.html; |
|
error_page 405 =200 http://$host$request_uri; |
|
} |
|
}
|
|
|