-
-
Save yasudacloud/79ea51f597327a062e94f2dbcdb0e5c9 to your computer and use it in GitHub Desktop.
This file contains 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 80; | |
server_name localhost; | |
location / { | |
auth_basic "Restricted Content"; | |
auth_basic_user_file /opt/homebrew/etc/nginx/.htpasswd; | |
proxy_set_header Authorization $http_x_token; | |
proxy_pass http://localhost:4000; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment