summaryrefslogtreecommitdiff
path: root/installation/caddyfile-pleroma.example
diff options
context:
space:
mode:
authorwitti <dev@witti.su>2018-06-03 20:13:33 +0200
committerwitti <dev@witti.su>2018-06-03 20:13:33 +0200
commit13925e0eb3ec8fd85eb649414f2656333e27ec03 (patch)
tree328ef25cb55d4766952ccae0eac312969304a9dc /installation/caddyfile-pleroma.example
parent9d054d30bce383437b6bb07c869047f1cb8e164f (diff)
downloadpleroma-13925e0eb3ec8fd85eb649414f2656333e27ec03.tar.gz
pleroma-13925e0eb3ec8fd85eb649414f2656333e27ec03.zip
caddy config example
Diffstat (limited to 'installation/caddyfile-pleroma.example')
-rw-r--r--installation/caddyfile-pleroma.example18
1 files changed, 18 insertions, 0 deletions
diff --git a/installation/caddyfile-pleroma.example b/installation/caddyfile-pleroma.example
new file mode 100644
index 000000000..e0f9dc917
--- /dev/null
+++ b/installation/caddyfile-pleroma.example
@@ -0,0 +1,18 @@
+social.domain.tld {
+ tls user@domain.tld
+
+ log /var/log/caddy/pleroma.log
+
+ cors / {
+ origin https://halcyon.domain.tld
+ origin https://pinafore.domain.tld
+ methods POST,PUT,DELETE,GET,PATCH,OPTIONS
+ allowed_headers Authorization,Content-Type,Idempotency-Key
+ exposed_headers Link,X-RateLimit-Reset,X-RateLimit-Limit,X-RateLimit-Remaining,X-Request-Id
+ }
+
+ proxy / localhost:4000 {
+ websocket
+ transparent
+ }
+}