Created
September 6, 2023 12:27
-
-
Save vodolaz/7d23882008d45526dc0959a67fc4b577 to your computer and use it in GitHub Desktop.
nginx-config-before-test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_format upstreamlog '[$time_local] $remote_addr - $remote_user - $server_name $host to: $upstream_addr: $request $status upstream_response_time $upstream_response_time msec $msec request_time $request_time'; | |
upstream sol_node { | |
server 127.0.0.1:8899; | |
#check interval=3000 rise=2 fall=3 timeout=5000 type=http; | |
#check_http_send 'GET /health HTTP/1.0\r\n\r\n'; | |
#check_http_expect_alive http_2xx http_3xx; | |
keepalive 300; | |
} | |
server { | |
listen 103.50.32.75:8899; | |
server_name sol-rpc.xxx-test.xxx.xyz; | |
access_log /var/log/nginx/sol1.log upstreamlog; | |
set $upstream 'sol_node'; | |
location / { | |
proxy_set_header Connection ''; | |
proxy_http_version 1.1; | |
proxy_set_header Host $host; | |
proxy_set_header X-real-ip $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for,$server_addr; | |
proxy_pass http://$upstream; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment