server {
listen 80;
listen [::]:80;
server_name 43.204.127.52 racetestnet.io;
location ^~ /ws {
proxy_pass http://0.0.0.0:8546/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Nginx-Proxy true;
}
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://0.0.0.0:8545/;
}
location /metrics {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://0.0.0.0:9100/metrics;
}
location /docs {
# proxy_set_header Host $http_host;
# proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass https://nitants-organization.gitbook.io/race/;
}
location /monitor {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://0.0.0.0:7000/;
}
location /health {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://0.0.0.0:9100/health;
}
location /genesis {
default_type "application/json";
alias /home/ubuntu/testnet/op-geth/genesis.json;
autoindex off;
}
location /rollup {
default_type "application/json";
alias /home/ubuntu/testnet/optimism/op-node/rollup.json;
autoindex off;
}
}
server {
listen 443 http2 ssl;
listen [::]:443 http2 ssl;
server_name 43.204.127.52 racetestnet.io;
location ^~ /ws {
proxy_pass http://0.0.0.0:8546/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Nginx-Proxy true;
}
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://0.0.0.0:8545/;
}
location /metrics {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://0.0.0.0:7500/metrics;
}
location /docs {
# proxy_set_header Host $http_host;
# proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass https://nitants-organization.gitbook.io/race/;
}
location /genesis {
default_type "application/json";
alias /home/ubuntu/testnet/op-geth/genesis.json;
autoindex off;
}
location /rollup {
default_type "application/json";
alias /home/ubuntu/testnet/optimism/op-node/rollup.json;
autoindex off;
}
ssl_certificate /etc/letsencrypt/live/racetestnet.io/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/racetestnet.io/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}