]> Untitled Git - lemmy.git/commit
Rewrite settings implementation. Fixes #1270 (#1433)
authorDessalines <dessalines@users.noreply.github.com>
Mon, 1 Mar 2021 17:24:11 +0000 (12:24 -0500)
committerGitHub <noreply@github.com>
Mon, 1 Mar 2021 17:24:11 +0000 (17:24 +0000)
commit462c4a29544702885a34f335ed8fe8f59d29acf4
tree76ea7c20e3a34903f38633a26eb49674f64d81b4
parent5ce8adcb13f9d68f5d7e8569b3040fdf2bb362d0
Rewrite settings implementation. Fixes #1270 (#1433)

* A first attempt at using deser-hjson. Fixes #1270

* Trying to fix tests, try 1

* Trying to fix tests, try 2

* A few fixes to deser_hjson

- Removing unwrap_or_defaults, using impl functions.
- Reorganized settings

* Make clippy happy

* hjson list strings must be quoted.

* Adding support for env vars.

* Moving to structs and defaults file.

* Moving settings default and struct.
47 files changed:
Cargo.lock
ansible/templates/config.hjson
api_tests/prepare-drone-federation-test.sh
config/defaults.hjson
crates/api/src/lib.rs
crates/api/src/site.rs
crates/api/src/user.rs
crates/api_structs/src/lib.rs
crates/api_structs/src/site.rs
crates/apub/src/activities/send/comment.rs
crates/apub/src/activities/send/mod.rs
crates/apub/src/activity_queue.rs
crates/apub/src/fetcher/search.rs
crates/apub/src/http/mod.rs
crates/apub/src/inbox/mod.rs
crates/apub/src/lib.rs
crates/apub/src/objects/mod.rs
crates/apub/src/objects/user.rs
crates/apub/src/routes.rs
crates/db_queries/src/source/user.rs
crates/routes/src/feeds.rs
crates/routes/src/images.rs
crates/routes/src/nodeinfo.rs
crates/routes/src/webfinger.rs
crates/utils/Cargo.toml
crates/utils/src/claims.rs
crates/utils/src/email.rs
crates/utils/src/lib.rs
crates/utils/src/rate_limit/mod.rs
crates/utils/src/request.rs
crates/utils/src/settings.rs [deleted file]
crates/utils/src/settings/defaults.rs [new file with mode: 0644]
crates/utils/src/settings/mod.rs [new file with mode: 0644]
crates/utils/src/settings/structs.rs [new file with mode: 0644]
crates/utils/src/utils.rs
docker/dev/Dockerfile
docker/federation/docker-compose.yml
docker/federation/lemmy_alpha.hjson [new file with mode: 0644]
docker/federation/lemmy_beta.hjson [new file with mode: 0644]
docker/federation/lemmy_delta.hjson [new file with mode: 0644]
docker/federation/lemmy_epsilon.hjson [new file with mode: 0644]
docker/federation/lemmy_gamma.hjson [new file with mode: 0644]
docker/lemmy.hjson
docker/prod/Dockerfile
docker/prod/Dockerfile.arm
src/code_migrations.rs
src/main.rs