File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ services:
23
23
# Database URL. Use `sqlite3:///` or `mysql://` when needed
24
24
DB : " postgres://pypi-server:pypi-server@db/pypi-server"
25
25
26
+ # # if you want to set PGUSER and PGPASSWORD in env
27
+
28
+ # PGUSER: pypi-server
29
+ # PGPASSWORD: pypi-server
26
30
# # By default random
27
31
# SECRET: changeme
28
32
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ def init_postgres(url):
60
60
61
61
DB .initialize (PostgresqlDatabase (
62
62
database = db_name ,
63
- user = url .user or '' ,
64
- password = url .password or '' ,
63
+ user = url .user or None ,
64
+ password = url .password or None ,
65
65
host = url .host ,
66
66
autocommit = bool (url .get ('autocommit' , True )),
67
67
autorollback = bool (url .get ('autorollback' , True ))
You can’t perform that action at this time.
0 commit comments