diff --git a/README.md b/README.md index 2a63458..4125809 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/vars/main.yml b/vars/main.yml index 533e394..4524234 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -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