mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
discourse: 3.3.2 -> 3.4.2
https://meta.discourse.org/t/3-3-3-security-and-maintenance-release/343239 https://meta.discourse.org/t/3-3-4-security-and-maintenance-release/349301 https://blog.discourse.org/2025/02/unpacking-discourse-3-4/ https://meta.discourse.org/t/3-4-1-bug-fix-and-ux-release/353247 https://meta.discourse.org/t/3-4-2-security-and-bug-fix-release/358152
This commit is contained in:
parent
9d02f876c4
commit
f2ebbabda0
9 changed files with 738 additions and 561 deletions
|
@ -13,8 +13,8 @@ let
|
|||
cfg = config.services.discourse;
|
||||
opt = options.services.discourse;
|
||||
|
||||
# Keep in sync with https://github.com/discourse/discourse_docker/blob/main/image/base/slim.Dockerfile#L5
|
||||
upstreamPostgresqlVersion = lib.getVersion pkgs.postgresql_13;
|
||||
# Keep in sync with https://github.com/discourse/discourse_docker/blob/main/image/base/Dockerfile PG_MAJOR
|
||||
upstreamPostgresqlVersion = lib.getVersion pkgs.postgresql_15;
|
||||
|
||||
postgresqlPackage =
|
||||
if config.services.postgresql.enable then config.services.postgresql.package else pkgs.postgresql;
|
||||
|
@ -676,6 +676,8 @@ in
|
|||
dns_query_timeout_secs = null;
|
||||
regex_timeout_seconds = 2;
|
||||
allow_impersonation = true;
|
||||
log_line_max_chars = 160000;
|
||||
yjit_enabled = false;
|
||||
};
|
||||
|
||||
services.redis.servers.discourse =
|
||||
|
@ -901,6 +903,9 @@ in
|
|||
extraConfig
|
||||
+ ''
|
||||
proxy_set_header X-Request-Start "t=''${msec}";
|
||||
proxy_set_header X-Sendfile-Type "";
|
||||
proxy_set_header X-Accel-Mapping "";
|
||||
proxy_set_header Client-Ip "";
|
||||
'';
|
||||
};
|
||||
cache = time: ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue