Skip to content

Instantly share code, notes, and snippets.

@syahrul12345
Last active September 22, 2023 06:36
Show Gist options
  • Save syahrul12345/e3fa30d40b2519c1beebf0d91d3c64da to your computer and use it in GitHub Desktop.
Save syahrul12345/e3fa30d40b2519c1beebf0d91d3c64da to your computer and use it in GitHub Desktop.
rpc-http-proxy
server {
listen 69;
location / {
proxy_pass http://localhost:8545; # The address of the app you are proxying to
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
# Basic Authentication
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;
}
}
server {
listen 79;
location / {
proxy_pass http://localhost:9545; # The address of the app you are proxying to
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
# Basic Authentication
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment