Merge branch 'fix/732-password-align' into 'develop'
[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 proxy / localhost:4000 {
14 websocket
15 transparent
16 }
17
18 tls {
19 # Remove the rest of the lines in here, if you want to support older devices
20 key_type p256
21 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
22 }
23
24 # If you do not want to use the mediaproxy function, remove these lines.
25 # To use this directive, you need the http.cache plugin for Caddy.
26 cache {
27 match_path /media
28 default_max_age 720m
29 }
30
31 cache {
32 match_path /proxy
33 default_max_age 720m
34 }
35 # Stop removing lines here.
36 }