Rework the build and include coturn and riot web
This commit is contained in:
parent
d56dbacde6
commit
d9214e47b5
11 changed files with 84 additions and 42 deletions
2
alpine/matrix/systemd/30-synapse-override.conf
Normal file
2
alpine/matrix/systemd/30-synapse-override.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Service]
|
||||
MemoryDenyWriteExecute=no
|
|
@ -1,10 +0,0 @@
|
|||
[Unit]
|
||||
Description=Matrix IRC gateway
|
||||
After=matrix.service
|
||||
Requires=matrix.service
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
ExecStart=/usr/local/bin/matrix-appservice-irc -c /etc/matrix/irc-config.yaml -f /etc/matrix/irc-registration.yaml -p 7881
|
||||
StateDirectory=matrix-appservice-irc
|
||||
ConfigurationDirectory=matrix
|
|
@ -1,6 +1,5 @@
|
|||
[Unit]
|
||||
Description=Synapse - Matrix homeserver
|
||||
After=network-online.target
|
||||
Requires=network-online.target
|
||||
|
||||
[Service]
|
||||
|
@ -10,7 +9,8 @@ Environment=PYTHONDONTWRITEBYTECODE=1
|
|||
|
||||
ExecStart=/usr/bin/synctl start /etc/matrix/homeserver.yaml --no-daemonize
|
||||
ExecStop=/usr/bin/synctl stop /etc/matrix/homeserver.yaml
|
||||
ExecReload=/opt/synapse/bin/synctl restart /etc/matrix/homeserver.yaml
|
||||
|
||||
StateDirectory=matrix-synapse
|
||||
ConfigurationDirectory=matrix
|
||||
StateDirectory=matrix
|
||||
RuntimeDirectory=matrix
|
||||
ConfigurationDirectory=matrix
|
||||
|
|
16
alpine/matrix/systemd/riot.service
Normal file
16
alpine/matrix/systemd/riot.service
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Synapse - Matrix homeserver
|
||||
Requires=network-online.target
|
||||
|
||||
[Service]
|
||||
Environment=LANG=en_US.UTF-8
|
||||
Environment=SYNAPSE_LOG_LEVEL=DEBUG
|
||||
Environment=PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
ExecStart=/usr/bin/synctl start /etc/matrix/homeserver.yaml --no-daemonize
|
||||
ExecStop=/usr/bin/synctl stop /etc/matrix/homeserver.yaml
|
||||
ExecReload=/opt/synapse/bin/synctl restart /etc/matrix/homeserver.yaml
|
||||
|
||||
StateDirectory=matrix
|
||||
RuntimeDirectory=matrix
|
||||
ConfigurationDirectory=matrix
|
13
alpine/matrix/systemd/turn.service
Normal file
13
alpine/matrix/systemd/turn.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Coturn - TURN/STUN server
|
||||
Requires=network-online.target
|
||||
|
||||
[Service]
|
||||
Environment=LANG=en_US.UTF-8
|
||||
|
||||
ExecStart=/usr/bin/turnserver -c /etc/coturn/turnserver.conf
|
||||
Restart=on-failure
|
||||
|
||||
StateDirectory=turn
|
||||
RuntimeDirectory=turn
|
||||
ConfigurationDirectory=turn
|
Loading…
Add table
Add a link
Reference in a new issue