logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/

sample_config.eex (2461B)


  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. import Config
  5. config :pleroma, Pleroma.Web.Endpoint,
  6. url: [host: "<%= domain %>", scheme: "https", port: <%= port %>],
  7. http: [ip: {<%= String.replace(listen_ip, ".", ", ") %>}, port: <%= listen_port %>],
  8. secret_key_base: "<%= secret %>",
  9. live_view: [signing_salt: "<%= lv_signing_salt %>"],
  10. signing_salt: "<%= signing_salt %>"
  11. config :pleroma, :instance,
  12. name: "<%= name %>",
  13. email: "<%= email %>",
  14. notify_email: "<%= notify_email %>",
  15. limit: 5000,
  16. registrations_open: true
  17. config :pleroma, :media_proxy,
  18. enabled: false,
  19. redirect_on_failure: true
  20. #base_url: "https://cache.pleroma.social"
  21. config :pleroma, Pleroma.Repo,
  22. adapter: Ecto.Adapters.Postgres,
  23. username: "<%= dbuser %>",
  24. password: "<%= dbpass %>",
  25. database: "<%= dbname %>",
  26. hostname: "<%= dbhost %>"
  27. # Configure web push notifications
  28. config :web_push_encryption, :vapid_details,
  29. subject: "mailto:<%= email %>",
  30. public_key: "<%= web_push_public_key %>",
  31. private_key: "<%= web_push_private_key %>"
  32. config :pleroma, :database, rum_enabled: <%= rum_enabled %>
  33. config :pleroma, :instance, static_dir: "<%= static_dir %>"
  34. config :pleroma, Pleroma.Uploaders.Local, uploads: "<%= uploads_dir %>"
  35. # Enable Strict-Transport-Security once SSL is working:
  36. # config :pleroma, :http_security,
  37. # sts: true
  38. # Configure S3 support if desired.
  39. # The public S3 endpoint (base_url) is different depending on region and provider,
  40. # consult your S3 provider's documentation for details on what to use.
  41. #
  42. # config :pleroma, Pleroma.Upload,
  43. # uploader: Pleroma.Uploaders.S3,
  44. # base_url: "https://s3.amazonaws.com"
  45. #
  46. # config :pleroma, Pleroma.Uploaders.S3,
  47. # bucket: "some-bucket",
  48. # bucket_namespace: "my-namespace",
  49. # truncated_namespace: nil,
  50. # streaming_enabled: true
  51. #
  52. # Configure S3 credentials:
  53. # config :ex_aws, :s3,
  54. # access_key_id: "xxxxxxxxxxxxx",
  55. # secret_access_key: "yyyyyyyyyyyy",
  56. # region: "us-east-1",
  57. # scheme: "https://"
  58. #
  59. # For using third-party S3 clones like wasabi, also do:
  60. # config :ex_aws, :s3,
  61. # host: "s3.wasabisys.com"
  62. config :joken, default_signer: "<%= jwt_secret %>"
  63. config :pleroma, configurable_from_database: <%= db_configurable? %>
  64. <%= if Kernel.length(upload_filters) > 0 do
  65. "config :pleroma, Pleroma.Upload, filters: #{inspect(upload_filters)}"
  66. end %>