Commit Graph

23 Commits

Author SHA1 Message Date
talyz 23e841c5b7 discourse: Fix the public directory path reported by Discourse
Change the path to the public directory reported by Discourse
to its real path instead of the symlink in the store, since
the store path won't be matched by any nginx rules.

Fixes #142528.

(cherry picked from commit 1fb77e822b87b0ca729c007e63166c7d2d38e947)
2021-10-22 23:29:50 +00:00
talyz 1c5946027c discourse: Make sure the notification email setting applies
Discourse normally overrides the default notification email setting,
which makes the `notificationEmailAddress` setting ineffective. Add a
patch to remove this override.

Fixes #140114.

(cherry picked from commit 917a0cfe47bad420a894fe8ca35d7dd95ebb5a7c)
2021-10-04 08:03:15 +00:00
Ryan Mulligan 4b7b04754a
Merge pull request #139323 from NixOS/backport-139180-to-release-21.05
[Backport release-21.05] discourse: enable restoring backups bigger than RAM
2021-09-29 05:33:49 -07:00
talyz ec588badc4 discourse: Enable jhead, which is no longer marked vulnerable
(cherry picked from commit ed8c4e01d985d115f8821106318afc65fc7eaf5f)
2021-09-27 13:37:42 +00:00
talyz cb502f9b10 discourse: 2.7.7 -> 2.7.8
(cherry picked from commit 73e8eb91c122699e5ede88980f7c7ef727b29896)
2021-09-27 13:37:35 +00:00
Ryan Mulligan d3bee2a63a discourse: enable restoring backups bigger than RAM
When restoring a backup, discourse decompresses the backup archive in
the /share/discourse/tmp dir. Before this change, it is linked to /run
which is typically backed by memory, so the backup will fail to
restore if you do not have enough memory on your system to contain the
backup. This has already happened to me on two small forums.

This moves tmp to the StateDirectory /var/lib/discourse/tmp which is
typically backed by disk.

(cherry picked from commit f933c68374b9c6195dc74d26c95fc9bf240fead8)
2021-09-24 12:35:53 +00:00
talyz ba5434c984
discourse.mkDiscoursePlugin: Handle repos with `gems` directories
Some plugin repos already have a `gems` directory. This lets the
packager choose whether it should be kept and the nix packaged ruby
gems should be copied into it or if it should be removed in favor of
our ruby gems.

(cherry picked from commit 04e6b03fa91603c7f1961cfcdcf5880c91fe6b05)
2021-08-17 23:16:47 +02:00
talyz af15cbe6b0
discourse: Change the path to the auto generated plugin assets
Change the path to the auto generated plugin assets, which defaults to
the plugin's directory and isn't writable at the time of asset
generation.

(cherry picked from commit 443b318ee9c614d480a2ecb0120b52806d6fbb3b)
2021-08-17 23:16:28 +02:00
talyz 080e4e43fb
discourse.tests: Test the appropriate discourse package
Perform the tests on the package that the `tests` attribute is a child
of, i.e. if `discourseAllPlugins.tests` is built, the tests will run
with the `discourseAllPlugins` package, not the `discourse` package as
previously.

(cherry picked from commit 6fd5a40ccaf0b4da1362803a387bf46d381dd66a)
2021-08-17 23:16:18 +02:00
talyz 639e1d9639
discourse: Remove leftover link to unused plugins directory
(cherry picked from commit bb14315d51a1c35304dfd82ff5c1faeaaf2c450c)
2021-08-17 23:13:55 +02:00
talyz f2533d47c8
discourse: 2.7.5 -> 2.7.7
(cherry picked from commit c97ae4ad8e782765b333840d8d1aa83903f82b7f)
2021-08-17 23:13:23 +02:00
Felix Buehler c193cf6ed9
discourse.mkDiscoursePlugin: remove phases
(cherry picked from commit 4f62b051375b0fdaa01ba37e915cfaaa7de40d80)
2021-08-17 23:12:50 +02:00
talyz 955cdd607f
discourse: 2.7.4 -> 2.7.5
(cherry picked from commit 60d78d7f1f218e19b1d0997ff4798c97a274cc47)
2021-07-15 19:59:04 +02:00
talyz 23cdb918f0 discourse: Add `update-plugins` action to update.py
(cherry picked from commit 3300282db3f8711a5ed5a5f627c4ddfb83168e3b)
2021-07-15 12:53:59 +00:00
talyz 71474d1e41 discourse: Add a proper plugin builder + a few initial packages
Some discourse plugins have Ruby dependencies and require a
specialized builder. This introduces a generic builder that can be
used whether the plugin has Ruby dependencies or not. It also adds a
set of pre-packaged plugins available through `discourse.plugins` and
provides an easy way to add more.

(cherry picked from commit 7671b90919af8271bdf7e07bb86d63216a2145d6)
2021-06-30 22:07:26 +00:00
talyz 0a64a8b87c discourse: Patch sources instead of using replace-literal
(cherry picked from commit f0ae7fdf7e9518ab1fef4603daa860d5402f5b3b)
2021-06-30 22:07:25 +00:00
talyz 3b84448e67 discourse: Fix plugin support
For plugins to work properly, their assets need to be precompiled
along with the rest of Discourse's assets. This means we need to build
new packages when the list of plugins change.

(cherry picked from commit 9af3672f4faaafba0ce0129a87fc7925c14eeb61)
2021-06-30 22:07:25 +00:00
talyz 4eec52ae4e discourse: 2.7.0 -> 2.7.4
(cherry picked from commit f7fb0d20a624c4d7fa12ba8a6e6d551655106a29)
2021-06-15 23:21:04 +00:00
Ryan Mulligan 4594e54063 nixos/discourse: Add rsync dependency
It is used for backup importing.

(cherry picked from commit e9c5ee1c4e48dc996773ccdbc0347f18fad31db9)
2021-05-28 22:16:10 -07:00
talyz ce5587e7bb discourse: 2.6.5 -> 2.7.0
(cherry picked from commit 42b8e7685d5fe5280f8f6101a6d19016b92f3a5c)
2021-05-28 22:16:10 -07:00
talyz 2db1ae068d
discourse: 2.6.3 -> 2.6.5 2021-04-16 14:20:56 +02:00
talyz 3c7df2a3cb
nixos/discourse: Add test 2021-04-05 13:55:44 +02:00
talyz 4d8c8f4722
discourse: init at 2.6.3 2021-04-05 13:54:06 +02:00