Skip to content

Commit

Permalink
Update config.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Insutanto authored Jan 18, 2020
1 parent 9649eb0 commit 88ae828
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/docs/web/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ path = "/tmp/ghz.log" # the path to log file, otherwize stdout is used
| :------: | :------------------------------------------------------------------: |
| sqlite3 | `path/to/database.db` |
| mysql | `dbuser:dbpassword@/ghz` |
| postgres | `host=dbhost user=dbuser dbname=ghz sslmode=disabled password=dbpassword` |
| postgres | `host=dbhost user=dbuser dbname=ghz sslmode=disable password=dbpassword` |

When using postgres without SSL then `sslmode=disable` must be added to the connection string.
When using mysql with host then `tcp(host)` must be added to the connection string like that `dbuser:dbpassword@tcp(dbhost)/ghz`.

0 comments on commit 88ae828

Please sign in to comment.