parent
1184e9f22c
commit
844b5f33ad
@ -0,0 +1,37 @@ |
||||
# 全局配置 |
||||
user www; |
||||
worker_processes auto; |
||||
error_log /www/wwwlogs/nginx_error.log; |
||||
pid /var/run/nginx.pid; |
||||
|
||||
# 事件模块配置 |
||||
events { |
||||
worker_connections 1024; |
||||
} |
||||
|
||||
# HTTP模块配置 |
||||
http { |
||||
include 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" "$http_x_forwarded_for"'; |
||||
|
||||
access_log off; |
||||
|
||||
# 代理服务器配置 |
||||
server { |
||||
listen 80; |
||||
server_name racknerd.jatus.top; |
||||
|
||||
location / { |
||||
proxy_pass https://query1.finance.yahoo.com/; |
||||
#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_ssl_verify off; |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue