You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/gonic/gonic.go
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ import (
15
15
"time"
16
16
17
17
"github.com/google/shlex"
18
+
_ "github.com/jinzhu/gorm/dialects/postgres"
18
19
_ "github.com/jinzhu/gorm/dialects/sqlite"
19
20
"github.com/oklog/run"
20
21
"github.com/peterbourgon/ff"
@@ -38,7 +39,12 @@ func main() {
38
39
confTLSKey:=set.String("tls-key", "", "path to TLS private key (optional)")
39
40
confPodcastPath:=set.String("podcast-path", "", "path to podcasts")
40
41
confCachePath:=set.String("cache-path", "", "path to cache")
41
-
confDBPath:=set.String("db-path", "gonic.db", "path to database (optional)")
42
+
confSqlitePath:=set.String("db-path", "gonic.db", "path to database (optional, default: gonic.db)")
43
+
confPostgresHost:=set.String("postgres-host", "", "name of the PostgreSQL gonicServer (optional)")
44
+
confPostgresPort:=set.Int("postgres-port", 5432, "port to use for PostgreSQL connection (optional, default: 5432)")
45
+
confPostgresName:=set.String("postgres-db", "gonic", "name of the PostgreSQL database (optional, default: gonic)")
46
+
confPostgresUser:=set.String("postgres-user", "gonic", "name of the PostgreSQL user (optional, default: gonic)")
47
+
confPostgresSslModel:=set.String("postgres-ssl-mode", "verify-full", "the ssl mode used for connecting to the PostreSQL instance (optional, default: verify-full)")
42
48
confScanIntervalMins:=set.Int("scan-interval", 0, "interval (in minutes) to automatically scan music (optional)")
43
49
confScanAtStart:=set.Bool("scan-at-start-enabled", false, "whether to perform an initial scan at startup (optional)")
44
50
confScanWatcher:=set.Bool("scan-watcher-enabled", false, "whether to watch file system for new music and rescan (optional)")
0 commit comments