Skip to content

Instantly share code, notes, and snippets.

View danielschmid's full-sized avatar

Daniel Schmid danielschmid

View GitHub Profile
@bastianallgeier
bastianallgeier / nginx
Last active September 23, 2025 01:05
nginx setup
# block content
location ~ ^/content/(.*).(txt|md|mdown)$ {
rewrite ^/content/(.*).(txt|md|mdown)$ /error redirect;
}
# block all files in the site folder from being accessed directly
location ~ ^/site/(.*)$ {
rewrite ^/site/(.*)$ /error redirect;
}