Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1KB

  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. example.tld {
  7. log /var/log/caddy/pleroma_access.log
  8. errors /var/log/caddy/pleroma_error.log
  9. gzip
  10. # this is explicitly IPv4 since Pleroma.Web.Endpoint binds on IPv4 only
  11. # and `localhost.` resolves to [::0] on some systems: see issue #930
  12. proxy / 127.0.0.1:4000 {
  13. websocket
  14. transparent
  15. }
  16. tls {
  17. # Remove the rest of the lines in here, if you want to support older devices
  18. key_type p256
  19. 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
  20. }
  21. # If you do not want to use the mediaproxy function, remove these lines.
  22. # To use this directive, you need the http.cache plugin for Caddy.
  23. cache {
  24. match_path /media
  25. default_max_age 720m
  26. }
  27. cache {
  28. match_path /proxy
  29. default_max_age 720m
  30. }
  31. # Stop removing lines here.
  32. }