Update ee/fleet-agent-downloader app configuration (#44338)

Changes:
- Updated the configuration in the ee/fleet-agent-downloader app to
disable the sockets hook and to use environment variables set by Heroku
add-ons (`DATABASE_URL` and `REDIS_URL`) in production

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
  * Configured database setup with PostgreSQL and SSL/TLS support.
* Enabled Redis-backed session storage with TLS security configuration.
  * Disabled sockets hook in core configuration.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Eric
2026-04-28 16:40:16 -05:00
committed by GitHub
parent 94c9c26660
commit 522bf825bb
2 changed files with 14 additions and 4 deletions
+3
View File
@@ -2,6 +2,9 @@
"generators": {
"modules": {}
},
"hooks": {
"sockets": false
},
"_generatedWith": {
"sails": "1.5.17",
"sails-generate": "2.0.13"
+11 -4
View File
@@ -47,8 +47,12 @@ module.exports = {
* *
***************************************************************************/
default: {
// adapter: 'sails-mysql',
// url: 'mysql://user:password@host:port/database',
adapter: 'sails-postgresql',
url: process.env.DATABASE_URL,
ssl: {
sslmode: 'require',
rejectUnauthorized: false,
}
//--------------------------------------------------------------------------
// /\ To avoid checking it in to version control, you might opt to set
// || sensitive credentials like `url` using an environment variable.
@@ -184,8 +188,11 @@ module.exports = {
* > (For a full list, see https://sailsjs.com/plugins/sessions) *
* *
***************************************************************************/
// adapter: '@sailshq/connect-redis',
// url: 'redis://user:password@localhost:6379/databasenumber',
adapter: '@sailshq/connect-redis',
url: process.env.REDIS_URL,
tls: {
rejectUnauthorized: false
},
//--------------------------------------------------------------------------
// /\ OR, to avoid checking it in to version control, you might opt to
// || set sensitive credentials like this using an environment variable.