diff --git a/.gitignore b/.gitignore index b8bda12..41c3653 100644 --- a/.gitignore +++ b/.gitignore @@ -132,4 +132,7 @@ dmypy.json *~ # Secrets file: should not be committed to repo! -secrets.ini \ No newline at end of file +secrets.ini +# Local database configuration (may contain a password): copy +# config.ini.example to config.ini and edit. Should not be committed. +config.ini diff --git a/config.ini b/config.ini deleted file mode 100644 index 1ac77de..0000000 --- a/config.ini +++ /dev/null @@ -1,11 +0,0 @@ -[logging] -slowcutoff = 0.1 -slowlogfile = slow_queries.log - -[postgresql] -host = localhost -port = 5432 -user = postgres -password = -dbname = lmfdb - diff --git a/config.ini.example b/config.ini.example new file mode 100644 index 0000000..9a2a3d5 --- /dev/null +++ b/config.ini.example @@ -0,0 +1,16 @@ +# Example psycodict configuration. Copy this file to config.ini and edit; +# psycodict reads config.ini from the current directory by default (an +# explicit config_file always wins). The password can also be kept out of +# this file entirely: leave it empty here and put it in secrets.ini, which +# overrides values in this file and is never committed. + +[logging] +slowcutoff = 0.1 +slowlogfile = slow_queries.log + +[postgresql] +host = localhost +port = 5432 +user = postgres +password = +dbname = lmfdb