Skip to content
Discussion options

You must be logged in to vote

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).

diff --git a/backend/app/api/main.go b/backend/app/api/main.go
index dce3ed0..1e3a9b5 100644
--- a/backend/app/api/main.go
+++ b/backend/app/api/main.go
@@ -109,7 +109,24 @@ func run(cfg *config.Config) error {
        case "sqlite3":
                databaseURL = cfg.Database.SqlitePath
        case "postgres":
-               databaseURL = fmt.Sprintf("host=%s port=%s user=%s password=%s …

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@101br03k
Comment options

@ambroisie
Comment options

@tankerkiller125
Comment options

@ambroisie
Comment options

Answer selected by ambroisie
@tankerkiller125
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants