Created
December 19, 2025 10:52
-
-
Save cli-ish/bc15291ce26e0c64b9afcf22b21d06b5 to your computer and use it in GitHub Desktop.
Caddy with reverse_proxy and bearer token setup for an alternate path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| acme_ca https://acme.zerossl.com/v2/DV90 | |
| email your-email@example.com | |
| } | |
| YOURDOMAIN.EXAMPLE { | |
| log { | |
| output stdout | |
| } | |
| handle_path /container/ollama/* { | |
| @auth { | |
| not header Authorization "Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
| } | |
| respond @auth 401 | |
| reverse_proxy http://127.0.0.1:11434 { | |
| header_up Host {http.reverse_proxy.upstream.hostport} | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment