Last active
September 22, 2023 06:38
-
-
Save syahrul12345/7d0ac135f52f2d2ad22d64b05e6f130f to your computer and use it in GitHub Desktop.
rpc-ws-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 96; | |
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:9546; # 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