-
Hello 👋, I want to use the newly added PostgreSQL backend instead of SQLite, however I'm having an issue deploying it in my setup. My configuration sets the following values:
This is similar to how I configure other services on my server to use a UNIX socket connection to their DB, and it works fine with those. However Homebox is failing to connect to said socket, and I suspect the code to setup
Notice that it mentions Did I misconfigure the service, or is there an issue with the code itself? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
By default if port is not set it is blank, could you try setting a port using HBOX_DATABASE_PORT (default for postgres should be 5432), and mayby also try setting a ssl mode (HBOX_DATABASE_SSL_MODE)? |
Beta Was this translation helpful? Give feedback.
Urgh, I figured out my issue was with my systemd service definition not enabling
AF_UNIX
(see first commit in NixOS/nixpkgs#396915).Also, I think the following patch would make it easier to configure and rely on default values for variables which aren't set (rather than needing to set e.g:
port=5432
).