mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-09 10:03:12 +00:00
c1ed3a522c
Nix store is world-readable, and while nix repl fails to get the secret due to file permissions, we should still set up secrets without getting them in Nix store. In the past tmpfiles.d was used, but its entire contents get to the nix store. Now, all files with secrets are generated in activation scripts, with the help of jq and sed. Also dead Pleroma code was deleted, but CAPTCHA is still broken. Co-authored-by: inexcode <inex.code@selfprivacy.org> Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config/pulls/19 Co-authored-by: Inex Code <inex.code@selfprivacy.org> Co-committed-by: Inex Code <inex.code@selfprivacy.org>
44 lines
1.1 KiB
Elixir
44 lines
1.1 KiB
Elixir
import Config
|
|
|
|
config :pleroma, Pleroma.Web.Endpoint,
|
|
url: [host: "social.$DOMAIN", scheme: "https", port: 443],
|
|
http: [ip: {127, 0, 0, 1}, port: 4000]
|
|
#secret_key_base: "",
|
|
#signing_salt: ""
|
|
|
|
config :pleroma, :instance,
|
|
name: "social.$DOMAIN",
|
|
email: "$LUSER@$DOMAIN",
|
|
notify_email: "$LUSER@$DOMAIN",
|
|
limit: 5000,
|
|
upload_limit: 1073741824,
|
|
registrations_open: true
|
|
|
|
config :pleroma, :media_proxy,
|
|
enabled: false,
|
|
redirect_on_failure: true
|
|
#base_url: "https://cache.pleroma.social"
|
|
|
|
config :pleroma, Pleroma.Repo,
|
|
adapter: Ecto.Adapters.Postgres,
|
|
username: "pleroma",
|
|
database: "pleroma",
|
|
socket_dir: "/run/postgresql",
|
|
pool_size: 10
|
|
|
|
#config :web_push_encryption, :vapid_details,
|
|
#subject: "",
|
|
#public_key: "",
|
|
#private_key: ""
|
|
|
|
config :pleroma, :database, rum_enabled: false
|
|
config :pleroma, :instance, static_dir: "/var/lib/pleroma/static"
|
|
config :pleroma, Pleroma.Uploaders.Local, uploads: "/var/lib/pleroma/uploads"
|
|
|
|
config :pleroma, :http_security,
|
|
sts: true
|
|
|
|
#config :joken, default_signer: ""
|
|
|
|
config :pleroma, configurable_from_database: true
|