summarylogtreecommitdiffstats
path: root/Caddyfile-example
diff options
context:
space:
mode:
authorShi Liang2021-09-02 15:31:26 +0800
committerShi Liang2021-09-02 15:31:26 +0800
commit341f6b5e5af4775e415417002f2dde50095fb702 (patch)
tree3289b4aacdc74e1f24c2fb12a2acd086051c79a3 /Caddyfile-example
downloadaur-341f6b5e5af4775e415417002f2dde50095fb702.tar.gz
Caddy v2.4.4
Diffstat (limited to 'Caddyfile-example')
-rw-r--r--Caddyfile-example16
1 files changed, 16 insertions, 0 deletions
diff --git a/Caddyfile-example b/Caddyfile-example
new file mode 100644
index 000000000000..f3d5e64d520e
--- /dev/null
+++ b/Caddyfile-example
@@ -0,0 +1,16 @@
+# For the "reverse-proxy with auto TLS certificate", add entries as follows.
+# Don't forget to set `CLOUDFLARE_API_TOKEN`, e.g., in /var/lib/caddy/envfile
+#
+# example.com {
+# reverse_proxy localhost:8080
+# tls {
+# dns cloudflare {env.CLOUDFLARE_API_TOKEN}
+# }
+# }
+#
+# example.net {
+# reverse_proxy localhost:8800
+# tls {
+# dns cloudflare {env.CLOUDFLARE_API_TOKEN}
+# }
+# }