Last active
September 22, 2023 06:36
-
-
Save syahrul12345/e3fa30d40b2519c1beebf0d91d3c64da to your computer and use it in GitHub Desktop.
rpc-http-proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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