It's not clear to me which RStudio product you are using. At first I thought this is probably RStudio Server Pro, but the fact you're using PostGres indicates that perhaps you are talking about RStudio Connect.
I would have suggested that you post the contents of the Connect configuration file, /etc/rstudio-connect/rstudio-connect.gcfg, but this is likely to contain some confidential information.