refactor(nix,postgres): update initial database setup to use structured configuration to improving readability and maintainability#5337
Conversation
✅ Deploy Preview for teslamate ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
|
I would really like to update this sometime to use the socket connection to the database by default rather then the TCP connection. Not only is there likely to be a tiny performance gain, but means there is one less password to worry about. Not sure about grafana though, is that supports socket connections or not. And it probably should have a dedicated postgresql user too. Don't know if any of this is in scope for this change or not. But maybe something to think about. |
|
Exactly. I wonder the same, would it be possible to use socket connection and grafana (yes I do it similar with Prometheus in my homelab) and TeslaMate as well to connect to the DB at the same time? Why not. As it seems like the options I tried to use won't be available (old links in mynixos.com) I will look more into it. |
4a82f1e to
e712294
Compare
Replaced with the familiar once and use |
…ed configuration to improving readability and maintainability
e712294 to
9d9df9f
Compare
Refactor the initial database setup to utilize a more structured approach with an array of
initialDatabases, improving readability and maintainability.