Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

73 líneas
2.2KB

  1. # Pleroma instance configuration
  2. # NOTE: This file should not be committed to a repo or otherwise made public
  3. # without removing sensitive information.
  4. <%= if Code.ensure_loaded?(Config) or not Code.ensure_loaded?(Mix.Config) do
  5. "import Config"
  6. else
  7. "use Mix.Config"
  8. end %>
  9. config :pleroma, Pleroma.Web.Endpoint,
  10. url: [host: "<%= domain %>", scheme: "https", port: <%= port %>],
  11. http: [ip: {<%= String.replace(listen_ip, ".", ", ") %>}, port: <%= listen_port %>],
  12. secret_key_base: "<%= secret %>",
  13. signing_salt: "<%= signing_salt %>"
  14. config :pleroma, :instance,
  15. name: "<%= name %>",
  16. email: "<%= email %>",
  17. notify_email: "<%= notify_email %>",
  18. limit: 5000,
  19. registrations_open: true,
  20. dynamic_configuration: <%= db_configurable? %>
  21. config :pleroma, :media_proxy,
  22. enabled: false,
  23. redirect_on_failure: true
  24. #base_url: "https://cache.pleroma.social"
  25. config :pleroma, Pleroma.Repo,
  26. adapter: Ecto.Adapters.Postgres,
  27. username: "<%= dbuser %>",
  28. password: "<%= dbpass %>",
  29. database: "<%= dbname %>",
  30. hostname: "<%= dbhost %>",
  31. pool_size: 10
  32. # Configure web push notifications
  33. config :web_push_encryption, :vapid_details,
  34. subject: "mailto:<%= email %>",
  35. public_key: "<%= web_push_public_key %>",
  36. private_key: "<%= web_push_private_key %>"
  37. config :pleroma, :database, rum_enabled: <%= rum_enabled %>
  38. config :pleroma, :instance, static_dir: "<%= static_dir %>"
  39. config :pleroma, Pleroma.Uploaders.Local, uploads: "<%= uploads_dir %>"
  40. # Enable Strict-Transport-Security once SSL is working:
  41. # config :pleroma, :http_security,
  42. # sts: true
  43. # Configure S3 support if desired.
  44. # The public S3 endpoint is different depending on region and provider,
  45. # consult your S3 provider's documentation for details on what to use.
  46. #
  47. # config :pleroma, Pleroma.Uploaders.S3,
  48. # bucket: "some-bucket",
  49. # public_endpoint: "https://s3.amazonaws.com"
  50. #
  51. # Configure S3 credentials:
  52. # config :ex_aws, :s3,
  53. # access_key_id: "xxxxxxxxxxxxx",
  54. # secret_access_key: "yyyyyyyyyyyy",
  55. # region: "us-east-1",
  56. # scheme: "https://"
  57. #
  58. # For using third-party S3 clones like wasabi, also do:
  59. # config :ex_aws, :s3,
  60. # host: "s3.wasabisys.com"
  61. config :joken, default_signer: "<%= jwt_secret %>"