Skip to content

Instantly share code, notes, and snippets.

@siassaj
Created February 14, 2020 01:03
Show Gist options
  • Save siassaj/7270d279ebd20b2a6c013e7cb3fd29bd to your computer and use it in GitHub Desktop.
Save siassaj/7270d279ebd20b2a6c013e7cb3fd29bd to your computer and use it in GitHub Desktop.
server {
listen 80;
auth_basic "Log in";
auth_basic_user_file .htpasswd;
location /healthcheck {
add_header Content-Type text/plain;
return 200 'healthy';
}
# Allow sentry access to the css & js files, as well as anyone with basic auth access
location ~ ^/.*.(js|css)$ {
satisfy any;
allow 35.184.238.160/32;
allow 104.155.159.182/32;
allow 104.155.149.19/32;
allow 130.211.230.102/32;
deny all;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment