Files
usdt/usdt-chain-executor/nginx/usdt-chain-executor.conf
T

34 lines
1.1 KiB
Plaintext
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.
# usdt-chain-executor HTTPS 反向代理。
# 执行器应监听 127.0.0.1:9089;Nginx 在内网地址 192.168.3.106:9088 提供 HTTPS。
# 上线前按实际部署修改 listen、allow、证书路径,并确保防火墙不向公网开放 9088。
server {
listen 192.168.3.106:9088 ssl;
server_name 192.168.3.106;
ssl_certificate /etc/nginx/certs/rent-cert.pem;
ssl_certificate_key /etc/nginx/certs/rent-private.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_session_cache shared:chain_executor_tls:10m;
ssl_session_timeout 10m;
# 示例为支付系统所在内网地址;部署时必须改成实际来源IP。
allow 192.168.3.106;
deny all;
location /internal/v1/ {
proxy_pass http://127.0.0.1:9089;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Authorization $http_authorization;
proxy_set_header Host $host;
proxy_connect_timeout 2s;
proxy_read_timeout 5s;
proxy_send_timeout 5s;
proxy_buffering off;
}
location / {
return 404;
}
}