Config File #1900
-
|
I'd prefer not to use docker, but specifying options from the command line is pretty awkward, to say the least Could we be able to load these settings from a .yml file instead? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Please use the discussion for this type of questions and suggestions. The "issues" is for ... issues, i.e., bug reports. |
Beta Was this translation helpful? Give feedback.
-
Can you elaborate? What exactly is "pretty awkward" here? Documentation covers all the options, and it looks straightforward to me. There are a lot of them, but you need to set only those you care about. Adding --config=blah.yml is technically possible, but the reason we don't have it is that Docker is the primary and officially supported delivery method. With Docker Compose, which is a YAML configuration by itself, adding another layer of configs doesn't make much sense. Btw, from what I recall, the flags library we use supports ini files out of the box. Maybe we can already do some external configuration this way, but I have never tried. @paskal - any idea if we support it automagically? |
Beta Was this translation helpful? Give feedback.
-
|
Good news is you can definitely use environment variables instead of those command line arguments for Remark42. The systemd service file can be modified to use an environment file (
The beauty of this approach is that when you need to change settings, you just:
No need to edit the service file itself or mess with long command lines. The service will automatically pick up the new configuration from the env file. You can add as many environment variables as needed in that file for other Remark42 settings too, here is the parameters list. UPD: I've published the systemd instruction as in the installation documentation here. |
Beta Was this translation helpful? Give feedback.
Good news is you can definitely use environment variables instead of those command line arguments for Remark42.
The systemd service file can be modified to use an environment file (
.env) instead. Here's how to set it up:/etc/remark42.env):The beauty of…