aboutsummaryrefslogtreecommitdiff
path: root/template/Caddyfile.template
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-10-28 23:07:12 +0800
committercrupest <crupest@outlook.com>2022-10-28 23:07:12 +0800
commite891968c8ee388370f40fa9e0c8fdf7088b3aa7b (patch)
tree1ea402b1b7923ee06413c418f68ab5cc0835b51d /template/Caddyfile.template
parenta9a3fd12f15a05fb39be5e08f79edf8418830d0b (diff)
downloadcrupest-e891968c8ee388370f40fa9e0c8fdf7088b3aa7b.tar.gz
crupest-e891968c8ee388370f40fa9e0c8fdf7088b3aa7b.tar.bz2
crupest-e891968c8ee388370f40fa9e0c8fdf7088b3aa7b.zip
...
Diffstat (limited to 'template/Caddyfile.template')
-rw-r--r--template/Caddyfile.template20
1 files changed, 20 insertions, 0 deletions
diff --git a/template/Caddyfile.template b/template/Caddyfile.template
new file mode 100644
index 0000000..df917ac
--- /dev/null
+++ b/template/Caddyfile.template
@@ -0,0 +1,20 @@
+{
+ encode gzip
+}
+
+{{CRUPEST_DOMAIN}} {
+ root * /srv
+ file_server
+}
+
+blog.{{CRUPEST_DOMAIN}} {
+ reverse_proxy halo:8090
+}
+
+timeline.{{CRUPEST_DOMAIN}} {
+ reverse_proxy timeline:5000
+}
+
+code.{{CRUPEST_DOMAIN}} {
+ reverse_proxy code_server:8080
+}