nixpkgs-suyu/pkgs/servers/web-apps/discourse
talyz 125bb7dac1
discourse: Don't patch the public path
Instead of patching the path to /public in Discourse's sources, make
the nginx configuration refer to the symlink in the discourse
package which points to the real path.

When there is a mismatch between the path nginx serves and the path
Discourse thinks it serves, we can run into issues like files not
being served - at least when sendfile requests from the ruby app are
processed by nginx. The issue I ran into most recently is that backup
downloads don't work.

Since Discourse refers to the public directory relative to the Rails
root in many places, it's much easier to just sync this path to the
nginx configuration than trying to patch all occurrences in the
sources. This should hopefully mean less potential for breakage in
future Discourse releases, too.
2021-12-06 14:21:39 +01:00
..
mail_receiver
plugins discourse.plugins: Update all plugins to their latest versions 2021-12-02 10:43:14 +01:00
rubyEnv discourse: 2.7.9 -> 2.8.0.beta9 2021-12-02 10:31:00 +01:00
action_mailer_ca_cert.patch discourse: 2.6.5 -> 2.7.0 2021-05-28 17:43:02 -07:00
admin_create.patch
auto_generated_path.patch discourse: 2.7.9 -> 2.8.0.beta9 2021-12-02 10:31:00 +01:00
default.nix discourse: Don't patch the public path 2021-12-06 14:21:39 +01:00
nixos_defaults.patch
notification_email.patch discourse: Make sure the notification email setting applies 2021-10-01 11:37:35 +02:00
plugin_gem_api_version.patch discourse: Add a proper plugin builder + a few initial packages 2021-06-24 20:54:14 +02:00
unicorn_logging_and_timeout.patch discourse: 2.6.5 -> 2.7.0 2021-05-28 17:43:02 -07:00
update.py discourse: update.py: Improve version handling, use pinned plugins 2021-12-02 11:55:07 +01:00
use_mv_instead_of_rename.patch discourse: Patch sources instead of using replace-literal 2021-06-24 19:38:25 +02:00