discourse: serve stylesheets and repair the update (#17697)

nginx passed X-Accel-Mapping on every request. Stylesheets are sent
from tmp/, outside that mapping, so Rack redirected nginx to their
filesystem path and the page loaded without CSS. Existing installs get
the line removed on update.

The update called yarn, which is not installed, ran Rails without the
production environment or rbenv on PATH, asked for PostgreSQL 16 on a
17 install and left sidekiq running.
This commit is contained in:
CanbiZ (MickLesk)
2026-10-05 12:47:42 +02:00
committed by GitHub
parent e49cff4d54
commit 231b2fb1b7
2 changed files with 21 additions and 15 deletions
-1
View File
@@ -203,7 +203,6 @@ server {
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$scheme;
proxy_set_header X-Accel-Mapping /opt/discourse/public/=/downloads/;
}
}
EOF