Search

Caddy with json config

caddy snippet by mkamner

Demonstration of tech-playground working with Caddy configuration as JSON as requested by the Caddy community

Open

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

Working simple rate limiting

nginx snippet by j3j5

This is the same approach as the 404 but rate limiting all connections in the `/` location which, unlike the 404 rate limiting, is working as expected.

Open

Rate limiting 404

nginx snippet by j3j5

Try to get nginx to rate limit 404 errors and not being able.

Open

Rate limiting 404

nginx snippet by j3j5

Trying to rate limit 404 errors, but not working :(

Open

serve simple robots.txt directly from nginx

nginx snippet by ProfessorLogout

Open

range of pets using a go template

Go Template snippet by mkamner

Open

Django request.user example

Django Template snippet by mkamner

Open