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.

37 lines
991B

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