I am attempting to connect to my database(s) via replication. I have filled out the fields in the replication option in a variety of ways only to get the same error each time:

> 
> password authentication failed for user "my\_local\_system\_username"
> 
> 
> 

where somehow sequelize/pg thinks that I am trying to log in with my operating system user name???

Here is what I tried:

```
const serverParams = {
    user: auth.db.user,
    password: auth.db.password,
    port: 5432
};

const dbConfig = {
    options: {
        dialect: 'postgres',
        protocol: 'tcp',
        replication: {
            write: {},
            read: process.env.NODE_ENV === 'production' ?
                [
                    {
                        ...serverParams,
                        host: 'db1.lupoex.com'
                    },
                    {
                        ...serverParams,
                        host: 'db2.lupoex.com'
                    }
                ] :
                [
                    {
                        ...serverParams,
                        host: 'test.db.lupoex.com'
                    }
                ]
        },
        pool: {
            max: 5,
            min: 0,
            idle: 5000,
            acquire: 20000
        }
        //logging: function(query) {
        //    console.log(query)
        //}
    }
};

new Sequelize('database', null, null, dbConfig.options);

```

Thanks in advance, all comments/suggestions welcome.