Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(db): sets max open and idle connections for postgres
When postgres is used as backing database for headscale, it does not set a limit on maximum open and idle connections which leads to hundreds of open connections to the postgres server. This commit fixes that by setting up a connection pool while creating the gorm DB instance.
- Loading branch information