holgersson-overlay/net-im/dendrite/files/dendrite.confd
Nils Freydank 163ef0a26e
net-im/dendrite: Drop polylith mode including possible breakage
Upstream dropped the polylith mode in 0.12.0 as announced in earlier releases.
This leads to some renaming of files, see e.g. upstream issue 2975[1].

As I've got no OpenRC system or container right now I can't test the modified
OpenRC init scripts. In case you have one feedback either way is appreciated
- confirmations that it's working, bug reports if it failes or even just
suggestions for improvement.

As the ebuild didn't build (failed in the install phase) before this fixup
there is no revbump necessary.

This commit also adds an service file which is based upon upstream's
example for their monolith setup (but with paths in /usr instead of opt)[2].

[1] https://github.com/matrix-org/dendrite/issues/2975
[2] https://github.com/matrix-org/dendrite/blob/main/docs/systemd/monolith-example.service

Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
2023-03-21 22:57:02 +01:00

25 lines
1010 B
Plaintext

# Increase the maximum number of open file descriptors. Set to a higher
# value for larger servers or if joining larger rooms.
rc_ulimit="-n 4096"
# Specify the network service that corresponds to the "bind" setting
# in your configuration file. For example, if you bind to 127.0.0.1,
# this should be set to "loopback" which provides the loopback interface.
rc_need="loopback"
# If your configuration of dendrite uses locally running PostgreSQL
# you may want to uncomment the next line
# rc_need="${rc_need} postgresql"
# If your configuration of dendrite uses locally running kafka
# you may want to uncomment the next line
# rc_need="${rc_need} kafka"
# If you use nginx as a reverse proxy for your dendrite
# you may want to uncomment the next line
# rc_need="${rc_need} nginx"
# Additional command-line options. These can be used to set the bind address and port of the monolith server,
# among other things. See `dendrite -help` for a full list.
# DENDRITE_OPTS="-http-bind-address localhost:8008"