[Discourse] A forum/mailing list tool

Discourse for YunoHost

Integration level
Install Discourse with YunoHost

This package allows you to install discourse quickly and simply on a YunoHost server.
If you don’t have YunoHost, please see here to know how to install and enjoy it.

Disclaimer

This package installs Discourse without Docker, for several reasons (mostly to support ARM architecture and low-profile servers, to mutualize nginx/postgresql/redis services and to simplify e-mail setup).
As stated by the Discourse team:

The only officially supported installs of Discourse are Docker based. You must have SSH access to a 64-bit Linux server with Docker support. We regret that we cannot support any other methods of installation including cpanel, plesk, webmin, etc.

So please have this in mind when considering asking for Discourse support.

Moreover, you should have in mind Discourse hardware requirements:

  • modern single core CPU, dual core recommended
  • 1 GB RAM minimum (with swap)
  • 64 bit Linux compatible with Docker
  • 10 GB disk space minimum

Finally, if installing on a low-end ARM device (e.g. Raspberry Pi):

  • installation can last up to 3 hours,
  • first access right after installation could take a couple of minutes.

Overview

Discourse is the 100% open source discussion platform built for the next decade of the Internet. Use it as a:

  • mailing list
  • discussion forum
  • long-form chat room

To learn more about the philosophy and goals of the project, visit discourse.org.

Shipped version: 2.6.0

Screenshots

Boing Boing


Mobile

Configuration

Use the admin panel of your discourse to configure this app.

Documentation

  • Official documentation: https://www.discourse.org/
  • YunoHost documentation: There no other documentations, feel free to contribute.

YunoHost specific features

  • Integration with YunoHost users and SSO:
    • LDAP integration: on the login pop-up, you can choose “Login with LDAP” and use your YunoHost credentials
    • private mode: Forum only accessible by YunoHost users
    • public mode: Visible by anyone

Multi-users support

Supported, with LDAP and SSO.

Login Popup

Default administrator and YunoHost users must login using LDAP:

  • click on the “with LDAP” button
  • use your YunoHost credentials

When disabling Local Login and other authentication services, clicking the Login or Sign Up button will directly bring up the LDAP Login popup.

Disable Local

LDAP Login Popup

Supported architectures

  • Tested on x86_64
  • Tested on ARM

Limitations

Known problems

  • In the administration dashboard, The installed version is shown as unknown (due the fact that we don’t use git for installation); you can safely ignore that as the YunoHost package will be maintained.
  • On ARM devices, default generated avatars are missing the profile initials (they are only a plain discus)

Known non-impacting log messages

fatal: Not a git repository (or any of the parent directories): .git

bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor

How-tos

Install plugins

cd /var/www/discourse
sudo -i -u discourse RAILS_ENV=production bin/rake --trace plugin:install repo=https://github.com/discourse/discourse-solved (for example)
sudo -i -u discourse RAILS_ENV=production bin/rake --trace assets:precompile
systemctl restart discourse

Links


Developers info

Please do your pull request to the testing branch.

To try the testing branch, please proceed like that.

sudo yunohost app install https://github.com/YunoHost-Apps/discourse_ynh/tree/testing --debug
or
sudo yunohost app upgrade discourse -u https://github.com/YunoHost-Apps/discourse_ynh/tree/testing --debug
1 Like

I’ve released this application a couple of months ago already, but now that it’s officially level 7 (thanks to a “powerful” CI server!) and that ARM compatibility has been fixed, I’m creating the proper forum thread :wink:

4 Likes

discourse package was just updated to version 2.1.6!

The official change log is available here.

Happy upgrading! :wink:

2 Likes

discourse package was just updated to version 2.1.7!

The official change log is available here.

Happy upgrading! :wink:

1 Like

discourse package was just updated to version 2.1.8!

The official change log is available here.

Happy upgrading! :wink:

1 Like

discourse package was just updated to version 2.2.1!
(by the way, the used Ruby version has been upgraded to 2.6.0)

The official change log is available here (and here for the 2.2 major release).

Happy upgrading! :wink:

1 Like

discourse package was just updated to version 2.2.2!

The official change log is available here.

Happy upgrading! :wink:

discourse package was just updated:

  • upgrade to upstream version 2.2.3; the official change log is available here.
  • fix #16 (users avatar not saving when installed on a subpath)

Happy upgrading! :wink:

2 Likes

discourse package was just updated:

  • upgrade to upstream version 2.2.4; the official change log is available here.

Happy upgrading! :wink:

1 Like

discourse package was just updated:

  • upgrade to upstream version 2.2.5; the official change log is available here.

Happy upgrading! :wink:

1 Like

discourse package was just updated:

  • upgrade to upstream version 2.2.6; the official change log is available here.

Happy upgrading! :wink:

1 Like

discourse package was just updated:

  • upgrade to upstream version 2.3.0; the official change log is available here.

Happy upgrading! :wink:

2 Likes

discourse package was just updated:

  • upgrade to upstream version 2.3.2; the official change log is available here.

Happy upgrading! :wink:

3 Likes

Hey, I’ve submitted 3 PRs to keep the ball rolling:

2 Likes

Hey YunoHosters, I’ve been working on documenting how to handle reply-by-email and also using mail forwarding for users on your discourse setup. Just wanted to share that:

In my experience, having reply-by-email working with mail forwarding is the lowest entry point for having people use your discourse as a mailing list and keeping their own @gmail (or whatever) mail address. Later on, when they start to get curious, you have a chance to recommend that they start to only use their @yunohostdomain.org (which is waiting for them).

Hope it helps someone!

2 Likes

discourse package was just updated:

  • upgrade to upstream version 2.3.3; the official change log is available here.

Happy upgrading! :wink:

3 Likes

discourse package was just updated:

  • upgrade to upstream version 2.3.4; the official change log is available here.

Happy upgrading! :wink:

3 Likes

discourse package was just updated:

  • upgrade to upstream version 2.3.5; the official change log is available here.

Happy upgrading! :wink:

3 Likes

Bonjour,
Je vois qu’une mise à jour critique est disponible. Le package Yunohost va-t-il être mis à jour ?
(Et sinon comment faire ?!)
Merci pour le package, j’ai eu un peu de mal à installer mais c’est vraiment un chouette outil.

discourse package was just updated:

  • upgrade to upstream version 2.3.6; the official change log is available here.

Happy upgrading! :wink:

1 Like