nixpkgs/nixos
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
..
doc Merge pull request #147898 from tomberek/release_bump 2021-11-29 19:12:44 -07:00
lib qemu, runInLinuxVM: change default cpu to qemu64 2021-11-30 13:06:22 +00:00
maintainers create-amis.sh: possible deprecation 2021-11-11 09:04:29 -07:00
modules discourse: Don't patch the public path 2021-12-06 14:21:39 +01:00
tests nixos/tests/installer: increase /boot sizes to 100MB 2021-11-30 03:53:14 +02:00
COPYING
default.nix
README
release-combined.nix release-combined.tested: Add the Sway test 2021-05-27 13:36:48 +02:00
release-small.nix
release.nix lxdImage: split from docker profile, use generators.toYAML 2021-11-03 07:49:54 +01:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.