summaryrefslogtreecommitdiff
path: root/Caddyfile.dev
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-07-13 08:45:34 -0600
committert <t@tjp.lol>2026-07-13 09:06:25 -0600
commit86abe0f77d48c67afdd98b5f9d880ed2696c03c3 (patch)
treeccd51be83548e01e530ad5b98c8b12649d87b1c5 /Caddyfile.dev
parentb3d5e1ac33ff929727cffc2b3025def9884566fe (diff)
image management outside the repo
the strategy for image management is to push them up to the production server early (they don't hurt anything sitting there with no <image> tags pointing at them) to use the server itself as image storage. a new mise tasks manages the upload, moving the image into place and setting permissions on the server. the /images/ directory in the repo is git-ignored for the server's checkout, and the local dev server is switched to caddy with a reverse proxy on images paths to serve local-dev image links straight from prod.
Diffstat (limited to 'Caddyfile.dev')
-rw-r--r--Caddyfile.dev11
1 files changed, 11 insertions, 0 deletions
diff --git a/Caddyfile.dev b/Caddyfile.dev
new file mode 100644
index 0000000..958ce0d
--- /dev/null
+++ b/Caddyfile.dev
@@ -0,0 +1,11 @@
+http://localhost:8000 {
+ handle /images/* {
+ reverse_proxy https://tjp.lol {
+ header_up Host tjp.lol
+ }
+ }
+ handle {
+ root * .
+ file_server
+ }
+}