default to unix socket connection locally

This commit is contained in:
Jens Timmerman 2020-09-11 02:23:55 +02:00
parent 34a9619317
commit a52059ae94
2 changed files with 4 additions and 4 deletions

View File

@ -17,9 +17,9 @@ Role Variables
- `im_domain`: the domain this app will run on (Needed for django's ALLOWED_HOSTS), default localhost
- `im_db_name`: database name, defaults to 'im'
- `im_db_user`: database user, defaults to 'im'
- `im_db_password`: database password (optional)
- `im_db_host`: database server, defaults to 'localhost'
- `im_db_port`: database port, defaults to 5432
- `im_db_password`: database password, defaults to '', (ignored for unix socket connection)
- `im_db_host`: database server, defaults to '/run/postgresql/' for local unix socket connection
- `im_db_port`: database port, defaults to 5432 (ignored for unix socket connection)
- `im_workers`: the number of gunicorn http worker threads (defaults to 4)
- `im_http_listen`: the ip address to bind to, change this to ip address of the host if you use a reverse proxy on a different host, defaults to localhost
- `im_http_port`: the http port to bind to, defaults to 80

View File

@ -6,7 +6,7 @@ im_domain: 'localhost'
im_db_name: 'im'
im_db_user: 'im'
im_user: 'im'
im_db_server: 'localhost'
im_db_server: '/run/postgresql/'
im_db_port: '5432'
im_db_password: ''
im_workers: 4