16 lines
		
	
	
		
			577 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			577 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|  | server { | ||
|  |     listen 8102;  # 监听 8100 端口 | ||
|  |     server_name 172.24.16.20;  # 运维机 的公网 IP | ||
|  |     access_log /data/tengine/logs/to_s2_go_access.log; | ||
|  |     error_log /data/tengine/logs/to_s2_go_error.log; | ||
|  |     location / { | ||
|  |         proxy_pass http://43.159.145.241:8100;  # 反向代理到本地电脑的sit的8070 | ||
|  |         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; | ||
|  |        | ||
|  |         client_max_body_size 300M; | ||
|  |     } | ||
|  | } |