Search

Caddy block requests without a user agent

caddy snippet by mkamner

Open

Simple file based maintenance mode for nginx

nginx snippet by mkamner

Doing maintenance pages the way I do here means your web server is checking a file on disk for every request. In small deployments this is likely not adding any overhead you need to be concerned with, but keep it in mind.

Open

range of pets using a go template

Go Template snippet by mkamner

Open

Django request.user example

Django Template snippet by mkamner

Open