Commit 1be0814d authored by vicotor's avatar vicotor

add nginx

parent 572b8a73
networks:
default:
name: rpcproxy
services:
rpcproxy:
image: rpcproxy:latest
openresty:
image: openresty/openresty:alpine
container_name: openresty_proxy
ports:
- "9000:9000" # 宿主机端口:容器内端口
volumes:
- ./opconf/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro
- ./logs:/usr/local/openresty/nginx/logs
networks:
- app_network
rpcproxy-11:
image: rpcproxy:v7
logging:
driver: local
options:
max-size: "100m"
max-file: "5"
volumes:
- ./whitelist.txt:/app/whitelist.txt
- ./ipblacklist.txt:/app/ipblacklist.txt
- ./local_addr_blacklist.txt:/app/local_addr_blacklist.txt
- ./ipbanlist.txt:/app/ipbanlist.txt
environment:
- WHITELIST_FILE=/app/whitelist.txt
- IP_BLACKLIST_FILE=/app/ipblacklist.txt
- LOCAL_BLACKLIST_FILE=/app/local_addr_blacklist.txt
- BAN_LIST_FILE=/app/ipbanlist.txt
- MYSQL_DSN=browser_readonly:Br50nY3dL9!fH1zK6@tcp(172.17.0.1:3306)/tidb_block_browser
- RATE_LIMIT_NORMAL=1200
- RATE_BURST_NORMAL=20
#- BLACKLIST_CONTRACT_ADDR=0x339F0Ca78A02062fcD1E2f81F9976b32d9552e82
#- MYSQL_DSN=root:fNWYkvHcA6Pr5q0RGa8m@tcp(172.31.45.123:53306)/tidb_block_browser
- ETH_RPC_BACKEND=http://211.211.211.208:26658
command:
- "/bin/sh"
- "-c"
- "/usr/bin/rpcproxy"
ports:
- "26671:8545"
restart:
unless-stopped
networks:
- app_network
rpcproxy-12:
image: rpcproxy:v7
logging:
driver: local
options:
max-size: "100m"
max-file: "5"
volumes:
- ./whitelist.txt:/app/whitelist.txt
- ./ipblacklist.txt:/app/ipblacklist.txt
- ./local_addr_blacklist.txt:/app/local_addr_blacklist.txt
- ./ipbanlist.txt:/app/ipbanlist.txt
environment:
- WHITELIST_FILE=/app/whitelist.txt
- ETH_RPC_BACKEND=http://172.17.0.1:26658
- BLACKLIST_CONTRACT_ADDR=0x339F0Ca78A02062fcD1E2f81F9976b32d9552e82
- MYSQL_DSN=root:fNWYkvHcA6Pr5q0RGa8m@tcp(172.31.45.123:53306)/tidb_block_browser
- IP_BLACKLIST_FILE=/app/ipblacklist.txt
- LOCAL_BLACKLIST_FILE=/app/local_addr_blacklist.txt
- BAN_LIST_FILE=/app/ipbanlist.txt
- MYSQL_DSN=browser_readonly:Br50nY3dL9!fH1zK6@tcp(172.17.0.1:3306)/tidb_block_browser
- RATE_LIMIT_NORMAL=1200
- RATE_BURST_NORMAL=20
#- BLACKLIST_CONTRACT_ADDR=0x339F0Ca78A02062fcD1E2f81F9976b32d9552e82
#- MYSQL_DSN=root:fNWYkvHcA6Pr5q0RGa8m@tcp(172.31.45.123:53306)/tidb_block_browser
- ETH_RPC_BACKEND=http://211.211.211.209:26658
command:
- "/bin/sh"
- "-c"
- "/usr/bin/rpcproxy"
ports:
- "26661:8545"
- "26672:8545"
restart:
unless-stopped
networks:
- app_network
rpcproxy-13:
image: rpcproxy:v7
logging:
driver: local
options:
max-size: "100m"
max-file: "5"
volumes:
- ./whitelist.txt:/app/whitelist.txt
- ./ipblacklist.txt:/app/ipblacklist.txt
- ./local_addr_blacklist.txt:/app/local_addr_blacklist.txt
- ./ipbanlist.txt:/app/ipbanlist.txt
environment:
- WHITELIST_FILE=/app/whitelist.txt
- IP_BLACKLIST_FILE=/app/ipblacklist.txt
- LOCAL_BLACKLIST_FILE=/app/local_addr_blacklist.txt
- BAN_LIST_FILE=/app/ipbanlist.txt
- MYSQL_DSN=browser_readonly:Br50nY3dL9!fH1zK6@tcp(172.17.0.1:3306)/tidb_block_browser
- RATE_LIMIT_NORMAL=1200
- RATE_BURST_NORMAL=20
#- BLACKLIST_CONTRACT_ADDR=0x339F0Ca78A02062fcD1E2f81F9976b32d9552e82
#- MYSQL_DSN=root:fNWYkvHcA6Pr5q0RGa8m@tcp(172.31.45.123:53306)/tidb_block_browser
- ETH_RPC_BACKEND=http://211.211.211.210:26658
command:
- "/bin/sh"
- "-c"
- "/usr/bin/rpcproxy"
ports:
- "26673:8545"
restart:
unless-stopped
networks:
- app_network
networks:
app_network:
driver: bridge
43.133.201.34
43.167.199.118
3.38.179.53
154.194.115.86
154.194.90.153
154.194.100.71
5.42.209.155
166.1.192.101
154.196.61.73
154.195.106.11
154.194.97.119
154.194.80.48
154.194.127.164
154.194.121.147
154.194.105.58
138.249.77.18
138.249.52.18
45.153.227.125
45.138.145.77
45.11.25.83
166.1.224.44
166.1.203.249
154.196.64.100
154.195.7.173
154.194.96.229
154.194.71.225
154.194.70.110
154.194.38.213
154.194.125.130
154.194.116.107
93.93.206.33
87.247.143.238
193.33.188.204
185.77.136.231
166.1.199.65
166.1.187.212
154.196.80.24
154.196.76.29
154.195.187.64
154.194.87.183
154.194.85.120
154.194.83.200
154.194.118.4
154.194.101.162
138.249.88.11
5.42.195.63
45.138.4.190
45.136.69.155
185.97.76.26
185.238.91.233
185.238.90.137
166.1.223.35
154.196.77.136
154.196.65.194
154.196.49.226
154.195.97.139
154.195.22.71
154.195.184.144
154.195.175.7
154.194.88.149
154.194.119.27
154.194.103.167
138.249.91.13
45.144.0.98
212.107.25.181
176.222.58.253
166.1.214.119
166.1.207.65
166.1.202.193
166.1.200.18
166.1.194.192
154.196.57.70
154.196.51.228
154.196.32.70
154.196.26.29
154.195.191.79
154.195.153.161
154.195.152.85
154.195.144.103
154.195.131.218
154.195.130.74
154.195.126.86
154.195.117.17
154.195.107.235
154.194.89.98
154.194.75.9
154.194.117.39
154.194.114.78
154.196.69.221
154.196.53.66
154.196.50.94
154.196.30.67
154.196.17.36
154.195.188.202
154.195.177.74
154.195.145.205
154.195.124.65
154.195.123.170
154.195.113.220
154.195.111.168
154.194.86.168
154.194.108.119
154.195.132.48
0xb12dc8e7da9cddb031b7f7611fedf73c92d1c358
0xf4ea1d88e4ae4e93b45693c90fad612ae8ddb423
0x967f7914f0d33d0b104a839b85f511415cc09823
0x01a790789ea2d38125646eb4910afb75a6842b92
0x9b3fa2f968bd2e11374c18881390d791f7039bc8
0xc4ae870da48cee17eb2e4297b7d895dc489d7ebd
0x00206c027de46a2deae2e2bf879f8569cd74f8d4
0xe0e7853e24cb8b69fb9316c3f35239368aaae93c
0x146757059aa486541f7007a0331a8dd6351b766f
0x9dfa2487de30dc131ffd7d8315a5cd127dddb351
0x1d62360a031b423a8e26d141599db62851b34f46
0x69544e68be0f42993d7a1c1fa721b6a9a7d8d6c1
0x8a932a4fdd18a237cd1d7ca8702aa1cbd6a7eeaf
0xa76b9f98e6ebf7b0be1d9d5e233e407aaea496fd
0xa364be54cdfac9f87bb2114a42017dacc2a760c8
0x7411a4d854da6f700377e68328864e816f708a9b
0x748c478576f1fb3e32b316fed4756117436feedf
0x5e8d972cdffd792536e6c8b7561063ff01d088f6
0x02bb9bcfbf13faafac186c9a933afa017c027384
0xac1ed96b896d9b6af1b48b419225be5525de2682
0x0891108eecea6597a11db6150d571a95d54d36c1
0xc1d36ec6743347e3070c38f1a779d09f3350b3e7
0x6c43350ae852a07e531c562390067c1a9570403d
0x4012e9dbbab5cd4d98718f12cf625716bf289975
0x6b35e68410787aa96cab617d90728af5ebe6a02f
0x70002813b247498d1ad170eca95ec9236d3f8acc
0xe5d20ae9278f4daa1e998cee552e790d22418f54
0x75f170a6be2ef2fcfe7e9a44ed2ba37ea85aafbb
0x6a66932926dee2f8878aebd2c71e09a2d88cecbf
0x1f28ee4a1be53b045ff8c4304b6820877dcfdfce
0xf052e813d7a4fdb422fa64f74c4f686b6f0d8431
0x07cd8f67dc7ec93b6f2e1943ef1dc9f67fd2aa43
0x0f5790a58dec96f130c2872b0a78b5a1ddd3d20c
0xd60f83fd04bfea63a35eadb5ab18bd3cd7857388
0xbc70d87af06963c1bb3f2afdd2bfd0bde68ed56f
0x3dfc72a1233b6c98080476b69b74b6ba85421827
0xb12dc8e7da9cddb031b7f7611fedf73c92d1c358
0xbc8c137aeac2a0ed7503cc9b67eebcdb189ff0d5
0xf4ea1d88e4ae4e93b45693c90fad612ae8ddb423
0x762d15afcbd86f4be7a222fba39431a0ea909ad3
0xac392df1909fa330b75f8a61ec42141091416af4
0x967f7914f0d33d0b104a839b85f511415cc09823
0xcfab0534c0956d49ac6b44b23ddb908c6bbc6898
0x872a7952d05873ca1616930c78f3c9802f64ed55
0x01a790789ea2d38125646eb4910afb75a6842b92
0x7940d13f405630c03e215fc1fffb6c8fb993c8b3
0x27400f2726215d01dfc520e4f9e66c935a003ced
0x89026dc4073db6a4544c294b8ea3139e42236ab4
0x073a04a27ca500bbdb687e1b46844b05074e8b3c
0x71ba1e274938688e471e21d2a4d25f0762dead3a
0x5ee0cc5d5033d964773bcfeb75bb159c0d647fce
0x7c91ad53c254964d9315918f995deeb5fad981ec
0x547179924dacd428dfb24536bd71c6a64252abb4
0xc40b2d62063d65f7bca21ebe93437b3ee902ddbb
0xdb24471b2f1550bd9d1563d09689d90a5c5a4501
0x764b68713173fdb39a87354ecf29cc9359ed3e5d
0x34b2fe8d890d6e0ff0229fdf33697d6a5e013b4e
0x6f60756686b971fa1b31905a19b6151cd681142e
0xccdc2a8df590bab5d16355e187176c6c18e2cedc
0xbea019e9aa0b135dde0b625cc5fb71e544608f8f
0x7ad3b2f76d75c44497359b528aeefb4db1232a00
0x1c21afbce505f6d1dc0169179924a5fa2967fbde
0x7940d13f405630c03e215fc1fffb6c8fb993c8b3
0xf4ea1d88e4ae4e93b45693c90fad612ae8ddb423
0x141af39479df28f1d96fab542177f7dbfdf85b0a
0x239d80187e9a0d589a052e50c01253d367eca10e
0x02c58939083258e65b18c526b6cd5d6857d96f5b
0x3d27a06f9271c1f5546bc602547c193695f125b9
0xd94b532ce8a8df6730a6ff46ce06d0e7b6c6ed0d
0x8edf29529d7ff9760040761f05b6ae4f4a1c6e11
0xfc4a574c3853b0782a3707b1bb783d076ef99a87
0x37de4aad7dc8f55943f058eb63e6e650a5d47a95
0x501de8d7768af7e4260e49af449bc37fa36c88cd
0x9b863e0386a54e52781ce5b09683c2d39ff4a977
0x7f6a02d8af5185cbf72fe82efd14bac4c0b66432
0xd15c00f53d90673acf1972f8dd786b4d1aa25b8f
0x5ce883029b0e326968a4a115ce81a7b7915fda8e
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
set_real_ip_from 172.31.0.0/16;
real_ip_header X-Forwarded-For;
log_format main '$remote_addr - $remote_user [$time_local] "$request"';
access_log /usr/local/openresty/nginx/logs/access.log main;
# 定义后端服务器组
upstream backend_servers {
# ip_hash 确保来自同一客户端 IP 的请求始终定向到同一台后端
ip_hash;
# 这里填写你的后端服务地址(容器名或 IP)
server 172.17.0.1:26671;
server 172.17.0.1:26672;
server 172.17.0.1:26673;
}
server {
# 监听自定义端口,例如 9000
listen 9000;
server_name _;
location / {
proxy_pass http://backend_servers;
# 必须透传真实 IP,否则 ip_hash 可能失效(如果上层还有代理)
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# 错误页面处理
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
https://scan.movachain.com
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment