Created
February 14, 2020 01:03
-
-
Save siassaj/7270d279ebd20b2a6c013e7cb3fd29bd to your computer and use it in GitHub Desktop.
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 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