Improve config files by adding documentation and removing some fields #61
No reviewers
Labels
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: LemmyNet/lemmy#61
Loading…
Reference in New Issue
No description provided.
Delete Branch "improve-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Havent tested this yet, but its really just shuffling some things around and adding comments.
Btw we should specify in the docker install docs that people need to change the jwt_secret.
Just one thing. And maybe the config.hjson and lemmy.hjson should be identical, and contain all of the config options.
@ -23,4 +26,0 @@
jwt_secret: "changeme"
# The dir for the front end
front_end_dir: "/app/dist"
# rate limits for various user actions, by user ip
Why remove this stuff? Its the only place its documented.
Sorry I should have mentioned why I'm changing this. Mainly I'm trying to make the manual installation easier, by reducing the number of fields in the config file used for that. These removed options and their documentation are still in
server/config/defaults.hjson
(which is linked from the docs). So this PR shouldnt change any of the behaviour.Later we should also clarify in the docs for manual installation which config fields actually need to be changed, because people are confused about that.
Good thing I tested this, it would've broken master.
Scratch what I wrote twice lol.
You can't really change that
front_end_dir
as../ui/dist
indefaults.hjson
, bc it would break local builds. So it needs to be re-added to lemmy.hjson.Sorry about that. I put that back in and tried it on a test server. Also noticed that the link to the default config wasnt working in the compiled docs and fixed that.
I'm testing now.