summaryrefslogtreecommitdiff
path: root/Caddyfile
diff options
context:
space:
mode:
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Caddyfile b/Caddyfile
new file mode 100644
index 0000000..7dd7dea
--- /dev/null
+++ b/Caddyfile
@@ -0,0 +1,20 @@
+hwebs.info {
+ root * /usr/local/www/www-personal
+ encode gzip
+
+ @old {
+ not file {
+ try_files {path} {path}/index.html {path}.html
+ }
+ }
+ handle @old {
+ reverse_proxy https://hwebs-info-static.fly.dev
+ }
+
+ handle {
+ try_files {path} {path}/index.html {path}.html
+ file_server
+ }
+}
+
+import /usr/local/etc/caddy/sites/*.caddy