Merge branch 'develop' into test/activity_pub/transmogrifier.ex
[akkoma] / installation / caddyfile-pleroma.example
1 # default Caddyfile config for Pleroma
2 #
3 # Simple installation instructions:
4 # 1. Replace 'example.tld' with your instance's domain wherever it appears.
5 # 2. Copy this section into your Caddyfile and restart Caddy.
6
7 example.tld {
8 log /var/log/caddy/pleroma_access.log
9 errors /var/log/caddy/pleroma_error.log
10
11 gzip
12
13 # this is explicitly IPv4 since Pleroma.Web.Endpoint binds on IPv4 only
14 # and `localhost.` resolves to [::0] on some systems: see issue #930
15 proxy / 127.0.0.1:4000 {
16 websocket
17 transparent
18 }
19
20 tls {
21 # Remove the rest of the lines in here, if you want to support older devices
22 key_type p256
23 ciphers ECDHE-ECDSA-WITH-CHACHA20-POLY1305 ECDHE-RSA-WITH-CHACHA20-POLY1305 ECDHE-ECDSA-AES256-GCM-SHA384 ECDHE-RSA-AES256-GCM-SHA384 ECDHE-ECDSA-AES128-GCM-SHA256 ECDHE-RSA-AES128-GCM-SHA256
24 }
25
26 # If you do not want to use the mediaproxy function, remove these lines.
27 # To use this directive, you need the http.cache plugin for Caddy.
28 cache {
29 match_path /media
30 default_max_age 720m
31 }
32
33 cache {
34 match_path /proxy
35 default_max_age 720m
36 }
37 # Stop removing lines here.
38 }