Files
discourse/lib
Alan Guo Xiang Tan 45204e5c55 DEV: Support per-unicorn-worker DB variable overrides (#35615)
This commit adds support for setting ActiveRecord's database
configuration variables for unicorn workers via ENVs with the
`DISCOURSE_UNICORN_WORKER_DB_VARIABLES_` prefix.

For example to set `statement_timeout`, one would add the
`DISCOURSE_UNICORN_WORKER_DB_VARIABLES_STATEMENT_TIMEOUT` env with its
corresponding value. Do note that envs with the
`DISCOURSE_UNICORN_WORKER_DB_VARIABLES_` prefix will take precendent
over envs with the `DISCOURSE_DB_VARIABLES_` prefix.
2025-10-27 13:45:27 +08:00
..
2022-04-28 11:51:03 +02:00
2024-08-12 10:41:13 +02:00
2025-09-24 12:00:22 +02:00
2024-11-06 06:27:49 +08:00
2023-02-21 10:30:48 +01:00
2020-07-21 15:55:03 +08:00
2025-07-24 22:04:13 +02:00
2025-09-30 10:39:08 +08:00