add more realistic fake config

This commit is contained in:
Kegan Myers 2023-07-23 15:33:08 -05:00
parent eb4d38781f
commit 78496f271a
3 changed files with 68 additions and 2 deletions

View file

@ -1,8 +1,9 @@
#!/bin/bash #!/bin/bash
set -Eeuxo pipefail set -Eeuxo pipefail
# mix local.hex --force # unclear why these are needed as they _should_ already be done in the docker image build...
# mix local.rebar --force mix local.hex --force
mix local.rebar --force
mix deps.get mix deps.get
mix compile mix compile
mix pleroma.frontend install pleroma-fe --ref stable mix pleroma.frontend install pleroma-fe --ref stable

View file

@ -30,6 +30,7 @@ docker run --rm \
-itv "$(pwd)/akkoma:/opt/akkoma" \ -itv "$(pwd)/akkoma:/opt/akkoma" \
-v "$(pwd)/prod.secret.exs:/config/prod.secret.exs" \ -v "$(pwd)/prod.secret.exs:/config/prod.secret.exs" \
-v "$(pwd)/.build.sh:/build.sh" \ -v "$(pwd)/.build.sh:/build.sh" \
-e "PROD_SECRET_FILE=/config/prod.secret.exs" \
--entrypoint "" \ --entrypoint "" \
"${AKKOMA_BASE_IMAGE}" \ "${AKKOMA_BASE_IMAGE}" \
/build.sh /build.sh

View file

@ -0,0 +1,64 @@
import Config
config :pleroma, Pleroma.Web.Endpoint,
url: [host: "akkoma.nrd.li", scheme: "https", port: 443],
http: [ip: {0, 0, 0, 0}, port: 4000]
config :pleroma, :instance,
name: "NrdLi Akkoma",
email: "kegan@keganmyers.com",
notify_email: "akkoma@nrd.li",
limit: 5000,
registrations_open: false
config :pleroma, :media_proxy,
enabled: true,
redirect_on_failure: false
# todo:
# base_url: "https://cache.pleroma.social"
config :pleroma, :media_preview_proxy,
enabled: true
config :pleroma, Pleroma.Repo,
adapter: Ecto.Adapters.Postgres,
username: "fake",
password: "fake",
database: "fake",
hostname: "fake",
port: 5432
config :pleroma, :database, rum_enabled: false
config :pleroma, :instance, static_dir: "/opt/akkoma/instance/static"
config :pleroma, Pleroma.Upload,
uploader: Pleroma.Uploaders.S3,
base_url: "https://nrdli-akkoma-cdn.nyc3.cdn.digitaloceanspaces.com"
config :pleroma, Pleroma.Uploaders.S3,
bucket: "nrdli-akkoma-cdn",
bucket_namespace: "uploads",
truncated_namespace: "",
streaming_enabled: true
config :ex_aws, :s3,
access_key_id: "fake",
secret_access_key: "fake",
region: "us-east-1",
scheme: "https://",
host: "nyc3.digitaloceanspaces.com"
config :pleroma, configurable_from_database: true
config :pleroma, Pleroma.Upload, filters: [Pleroma.Upload.Filter.Exiftool, Pleroma.Upload.Filter.AnonymizeFilename]
config :pleroma, :frontends,
primary: %{
"name" => "pleroma-fe",
"ref" => "stable"
},
admin: %{
"name" => "admin-fe",
"ref" => "stable"
}
config :pleroma, :mrf,
policies: [Pleroma.Web.ActivityPub.MRF.SimplePolicy]