techne/caddy.org

16 lines
298 B
Org Mode
Raw Permalink Normal View History

2024-09-21 04:17:26 +02:00
#+title: Caddy
#+setupfile: ../org-templates/page.org
** IP whitelist
#+BEGIN_SRC caddyfile
irc.hyperreal.coffee {
@me {
client_ip 1.2.3.4
}
handle @me {
reverse_proxy localhost:9000
}
respond "You are attempting to access protected resources!" 403
}
#+END_SRC