commit | 8b4f7b6649e73cda4067109ccb188063b8a3115c | [log] [tgz] |
---|---|---|
author | Skyler Grey <minion@clicks.codes> | Sat Feb 17 12:23:02 2024 +0000 |
committer | Samuel Shuert <coded@clicks.codes> | Sun Mar 10 02:07:34 2024 +0000 |
tree | bbf35162ae6093da366f54b411957b262c4256cb | |
parent | 975c86873111c5ff64f853586802e6b8b332d3ef [diff] |
Move jinx to system and assign postgres database We wanted an easy way to view the jinx logs and to avoid using a separate user account which is more complicated to operate, and has more challenges in deployment, than a normal systemd service Change-Id: I436247a14925316ec3dcd77fb18875dc35c69560 Reviewed-on: https://git.clicks.codes/c/Infra/NixFiles/+/398 Tested-by: Skyler Grey <minion@clicks.codes> Reviewed-by: Samuel Shuert <coded@clicks.codes>
To deploy these files to our server we use deploy-rs. If you've got a flakes-enabled nix installed on your system you can run
nix run github:serokell/deploy-rs
You can also install deploy-rs to your profile, at which point you'll be able to run
deploy
Secrets are stored in SOPS and deployed using scalpel.
If you have a service which needs to store secrets in its config file, please set systemd reloadTriggers and restartTriggers to automatically reload/restart the service whenever the configuration changes.
It's notable that changing the secrets will not trigger a reload/restart of the service. If you want to update the secrets without updating the rest of the configuration you currently need to manually restart the service. It's possible that this could be solved by using systemd paths to watch the files (see https://superuser.com/questions/1171751/restart-systemd-service-automatically-whenever-a-directory-changes-any-file-ins) but this is not a priority