now-playing: Navidrome "Listening to" service for Lotus Chat (cinny #491) (#68)
Lint / Shell (shellcheck) (push) Successful in 10s
Lint / JS (eslint) (push) Successful in 7s
Lint / No Hookshot webhook IDs in README (push) Successful in 6s
Lint / No secrets in webhook configs (push) Successful in 6s
Lint / Landing page is rendered (matrix (push) Successful in 7s
Lint / Python (ruff) (push) Successful in 11s
Lint / Python deps (pip-audit) (push) Successful in 36s
Lint / Secret scan (gitleaks) (push) Successful in 5s
Lint / Shell (shellcheck) (push) Successful in 10s
Lint / JS (eslint) (push) Successful in 7s
Lint / No Hookshot webhook IDs in README (push) Successful in 6s
Lint / No secrets in webhook configs (push) Successful in 6s
Lint / Landing page is rendered (matrix (push) Successful in 7s
Lint / Python (ruff) (push) Successful in 11s
Lint / Python deps (pip-audit) (push) Successful in 36s
Lint / Secret scan (gitleaks) (push) Successful in 5s
This commit was merged in pull request #68.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
[Unit]
|
||||
Description=Now playing (Navidrome) for Lotus Chat "Listening to" cards
|
||||
After=network-online.target matrix-synapse.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=lotus-now-playing
|
||||
Group=lotus-now-playing
|
||||
# MATRIX_TOKEN (Synapse admin API, user lookups only), shared with voice-limit-guard.
|
||||
EnvironmentFile=/etc/matrix-deploy.env
|
||||
# NAVIDROME_USER / NAVIDROME_PASSWORD for the read-only lotus-nowplaying account.
|
||||
EnvironmentFile=/etc/lotus-now-playing/env
|
||||
Environment=NAVIDROME_URL=http://10.10.10.28:4533
|
||||
Environment=SERVER_NAME=matrix.lotusguild.org
|
||||
Environment=BIND_HOST=0.0.0.0
|
||||
Environment=BIND_PORT=8072
|
||||
Environment=STATE_DIR=/var/lib/lotus-now-playing
|
||||
Environment=USERS_FILE=/etc/lotus-now-playing/users.json
|
||||
StateDirectory=lotus-now-playing
|
||||
StateDirectoryMode=0750
|
||||
ExecStart=/usr/bin/python3 /opt/lotus-now-playing/lotus_now_playing.py
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=lotus-now-playing
|
||||
|
||||
MemoryMax=96M
|
||||
CPUQuota=20%
|
||||
|
||||
NoNewPrivileges=yes
|
||||
ProtectSystem=strict
|
||||
ProtectHome=yes
|
||||
PrivateTmp=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user