summaryrefslogtreecommitdiff
path: root/stacks/edge/Caddyfile.template
diff options
context:
space:
mode:
Diffstat (limited to 'stacks/edge/Caddyfile.template')
-rw-r--r--stacks/edge/Caddyfile.template29
1 files changed, 29 insertions, 0 deletions
diff --git a/stacks/edge/Caddyfile.template b/stacks/edge/Caddyfile.template
new file mode 100644
index 0000000..23a6498
--- /dev/null
+++ b/stacks/edge/Caddyfile.template
@@ -0,0 +1,29 @@
+# {
+# debug
+# auto_https off
+# }
+
+# NOTE: EDIT THIS FILE EXPLICITLY. DO NOT AUTOMATE.
+
+{$DOMAIN}:80 {
+ root * {$DOCUMENT_ROOT}
+ encode
+ try_files {path} index.html
+ file_server
+}
+
+{$SERVICE0_SUB}.{$DOMAIN}:80 {
+ reverse_proxy {$SERVICE0}:{$SERVICE0_PORT}
+}
+
+{$SERVICE1_SUB}.{$DOMAIN}:80 {
+ reverse_proxy {$SERVICE1}:{$SERVICE1_PORT}
+}
+
+{$SERVICE2_SUB}.{$DOMAIN}:80 {
+ reverse_proxy {$SERVICE2}:{$SERVICE2_PORT}
+}
+
+{$SERVICE3_SUB}.{$DOMAIN}:80 {
+ reverse_proxy {$SERVICE3}:{$SERVICE3_PORT}
+}