summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-06-03 19:52:48 +0000
committerlambda <pleromagit@rogerbraun.net>2018-06-03 19:52:48 +0000
commit04c584391ccb726a2b4b08dfd82a1ee27f36d31b (patch)
tree1840e7542a514a8154ac3324c811af29d27cfb0c
parent8073af6e105ec583491191ded5f76a2700402224 (diff)
parent13925e0eb3ec8fd85eb649414f2656333e27ec03 (diff)
downloadpleroma-04c584391ccb726a2b4b08dfd82a1ee27f36d31b.tar.gz
pleroma-04c584391ccb726a2b4b08dfd82a1ee27f36d31b.zip
Merge branch 'develop' into 'develop'
Added: caddy webserver config example Closes #192 See merge request pleroma/pleroma!189
-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
+ }
+}