nixpkgs/nixos/modules
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
..
config nixos/swap: remove fallocate and use dd as the main swap creation method 2021-11-13 17:49:42 +02:00
hardware Revert "nixos/hidpi: add xserver dpi" 2021-11-29 23:26:46 +02:00
i18n/input-method nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
installer nixos/installer: Quote variable references 2021-11-26 18:58:08 +13:00
misc nixos/documentation: index devman by default if enabled 2021-11-22 23:39:42 +01:00
profiles Merge pull request #146288 from Artturin/mtoolsandsuch 2021-11-19 00:21:08 +02:00
programs Merge pull request #142839 from ivan/zsh-autosuggestions-config-async 2021-11-25 00:09:18 +01:00
security nixos/acme: fix typo in docs 2021-11-30 21:31:50 +08:00
services discourse: Don't patch the public path 2021-12-06 14:21:39 +01:00
system Merge pull request #113887 from xaverdh/install-grub-editorconfig-fixup 2021-11-29 21:03:41 +01:00
tasks Merge pull request #146709 from Artturin/underscorename 2021-11-21 03:12:31 +02:00
testing nixos/lib/qemu-flags: rename to qemu-common 2021-09-18 16:58:16 +02:00
virtualisation nixos/vmware-guest: add display-manager to after and 2021-11-25 04:33:05 +02:00
module-list.nix Merge pull request #145035 from pmeiyu/master 2021-11-19 17:05:50 +01:00
rename.nix Merge pull request #140820 from VergeDX/kippo-remove 2021-10-11 17:19:11 +08:00