From 4ca0ccd0e7d918a9d01e3ea423ea64c2079f0b34 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa <jelle@archlinux.org> Date: Sat, 13 Feb 2021 22:27:57 +0100 Subject: [PATCH] Update Caddyfile to Caddy 2 --- Caddyfile | 22 ++++++---------------- scripts/startdevelop.sh | 2 +- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/Caddyfile b/Caddyfile index 409b10e..5b437d4 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,19 +1,9 @@ -localhost:8881 { - errors stderr - log stdout +http://localhost:8881 - gzip +log - proxy /api https://reproducible.archlinux.org/ { - transparent - } +encode gzip - proxy / 127.0.0.1:9966 { - transparent - } - - proxy /livereload 127.0.0.1:9966 { - websocket - transparent - } -} +reverse_proxy 127.0.0.1:9966 +reverse_proxy /api/* https://reproducible.archlinux.org +reverse_proxy /livereload 127.0.0.1:9966 diff --git a/scripts/startdevelop.sh b/scripts/startdevelop.sh index 37ba930..4b1b78c 100755 --- a/scripts/startdevelop.sh +++ b/scripts/startdevelop.sh @@ -14,7 +14,7 @@ tmux select-pane -t 1 tmux send-keys "make sass-watcher" C-m tmux split-window -v tmux select-pane -t 2 -tmux send-keys "caddy" C-m +tmux send-keys "caddy run" C-m # Set default window tmux select-window -t $SESSION:+1 -- GitLab