Compare commits
2 Commits
a10a511817
...
5bf5186599
Author | SHA1 | Date |
---|---|---|
TEC | 5bf5186599 | |
TEC | 66eac8831b |
|
@ -9,3 +9,10 @@ reverse_proxy @dynamic localhost:8000
|
|||
|
||||
root * /opt/emacs-survey/public
|
||||
file_server
|
||||
|
||||
handle_errors {
|
||||
rewrite * /{err.status_code}
|
||||
reverse_proxy https://http.cat {
|
||||
header_up Host {upstream_hostport}
|
||||
}
|
||||
}
|
||||
|
|
12
setup.org
12
setup.org
|
@ -93,11 +93,23 @@ reverse_proxy @dynamic localhost:8000
|
|||
#+end_src
|
||||
|
||||
We'll just pass all other requests to the public folder of the Emacs Survey.
|
||||
|
||||
#+begin_src prog
|
||||
root * /opt/emacs-survey/public
|
||||
file_server
|
||||
#+end_src
|
||||
|
||||
For HTTP errors we could re-use the Genie error pages ... or have some fun 🐱.
|
||||
|
||||
#+begin_src prog
|
||||
handle_errors {
|
||||
rewrite * /{err.status_code}
|
||||
reverse_proxy https://http.cat {
|
||||
header_up Host {upstream_hostport}
|
||||
}
|
||||
}
|
||||
#+end_src
|
||||
|
||||
Just this one file is all it takes to get Caddy set up to our liking 🙂.
|
||||
|
||||
#+begin_src sh
|
||||
|
|
Loading…
Reference in New Issue