Routing using NGINX
Prerequisites
Create per subdomain NGINX config
API
Creating Your NGINX Configuration File
sudo nano /etc/nginx/sites-available/crossfi-testnet-apiConfiguring NGINX for Your API Subdomain
server {
listen 80;
server_name crossfi-testnet-api.cryptonode.id;
location / {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Max-Age 3600;
add_header Access-Control-Expose-Headers Content-Length;
proxy_pass http://127.0.0.1:1317;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}RPC
Creating Your NGINX Configuration File
Configuring NGINX for Your RPC Subdomain
JSONRPC
Creating Your NGINX Configuration File
Configuring NGINX for Your JSONRPC Subdomain
Activating Your Configuration
Last updated