Skip to content

Instantly share code, notes, and snippets.

@yasudacloud
Created June 7, 2023 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yasudacloud/79ea51f597327a062e94f2dbcdb0e5c9 to your computer and use it in GitHub Desktop.
Save yasudacloud/79ea51f597327a062e94f2dbcdb0e5c9 to your computer and use it in GitHub Desktop.
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