default_settings: Set NAGIOS_BOT_HOST to most likely correct hostname.

Using only EXTERNAL_HOST results in:
```
CRITICAL: Error subscribing to Zulips: Account is not associated with this subdomain
```

Since system bots like the nagios bot are created in
`SYSTEM_BOT_REALM`, default to that subdomain of `EXTERNAL_HOST`.
This commit is contained in:
Alex Vandiver 2024-05-08 19:29:02 +00:00 committed by Tim Abbott
parent cbc9065ed2
commit 16a53d08fd
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ GOOGLE_ANALYTICS_ID: Optional[str] = None
IS_DEV_DROPLET = False IS_DEV_DROPLET = False
# Used by puppet/kandra/files/cron.d/check_send_receive_time. # Used by puppet/kandra/files/cron.d/check_send_receive_time.
NAGIOS_BOT_HOST = EXTERNAL_HOST NAGIOS_BOT_HOST = SYSTEM_BOT_REALM + "." + EXTERNAL_HOST
# Use half of the available CPUs for data import purposes. # Use half of the available CPUs for data import purposes.
DEFAULT_DATA_EXPORT_IMPORT_PARALLELISM = (len(os.sched_getaffinity(0)) // 2) or 1 DEFAULT_DATA_EXPORT_IMPORT_PARALLELISM = (len(os.sched_getaffinity(0)) // 2) or 1