Skip to content

Commit d369a99

Browse files
committed
Added PostgreSQL authentication method to example configuration file.
1 parent b89afc6 commit d369a99

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

config.toml.example

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ IntlConnTimeout = 100
1010

1111
# Time in milliseconds to wait between a failed
1212
# connection attempt and the next one.
13-
IntlConnRetry = 750
13+
IntlConnRetry = 400
1414

1515
[IMAP]
1616
# What the system should send on an incoming new
@@ -23,7 +23,7 @@ HierarchySeparator = "."
2323
[Distributor]
2424
IP = "127.0.0.1"
2525
Port = "993"
26-
AuthAdapter = "AuthFile"
26+
AuthAdapter = "AuthPostgres"
2727

2828
[Distributor.PublicTLS]
2929
# Use these locations to provide your externally
@@ -39,9 +39,13 @@ AuthAdapter = "AuthFile"
3939
CertLoc = "/very/complicated/and/long/path/to/your/internal-distributor-cert.pem"
4040
KeyLoc = "/very/complicated/and/long/path/to/your/internal-distributor-key.pem"
4141

42-
[Distributor.AuthFile]
43-
File = "users.txt"
44-
Separator = ";"
42+
[Distributor.AuthPostgres]
43+
IP = "127.0.0.1"
44+
Port = 5432
45+
Database = "pluto"
46+
User = "pluto"
47+
Password = "YourSuperSecurePasswordHere12345"
48+
UseTLS = true
4549

4650

4751
[Workers]

0 commit comments

Comments
 (0)