Skip to content

Instantly share code, notes, and snippets.

View eyzmeng's full-sized avatar

Ethan Meng eyzmeng

  • 02:59 (UTC +08:00)
View GitHub Profile
@eyzmeng
eyzmeng / nginx.conf
Created May 28, 2024 18:54
nginx configs i use to ban direct http(s) access by ip
# place this file in somewhere
# /etc/nginx/nginx.conf can see
#
# i personally just called this
# /etc/nginx/boot_invalid_host.conf
# and added
# include boot_invalid_host.conf;
# in nginx.conf though... o_o

Keybase proof

I hereby claim:

  • I am eyzmeng on github.
  • I am eyzmeng (https://keybase.io/eyzmeng) on keybase.
  • I have a public key whose fingerprint is E98E AED4 F43B 6650 5A6E 2598 6EFD 0C04 5698 F1A1

To claim this, I am signing this object: