aggiunto servizio mollysocket

This commit is contained in:
dado 2025-01-05 14:27:04 +01:00
parent 513916995f
commit 4e80ff0f6d
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# /etc/systemd/system/mollysocket.service
[Unit]
Description=MollySocket
After=network-online.target
[Service]
Type=simple
Environment="RUST_LOG=info"
Environment="MOLLY_CONF=/opt/mollysocket/prod.toml"
WorkingDirectory=/opt/mollysocket/
SetCredentialEncrypted=ms_vapid: \
********************************************************************* \
********************************************************************* \
**************************************
Environment=MOLLY_VAPID_KEY_FILE=%d/ms_vapid
User=mollysocket
Group=mollysocket
UMask=0007
ExecStart=/opt/mollysocket/ms server
KillSignal=SIGINT
Restart=on-failure
# Configures the time to wait before service is stopped forcefully.
TimeoutStopSec=5
[Install]
WantedBy=multi-user.target

5
mollysocket/prod.toml Normal file
View File

@ -0,0 +1,5 @@
db = '/opt/mollysocket/mollysocket.db'
allowed_endpoints = ['https://ntfy.ilnostropianetaselvaggio.it', 'https://up.conversations.im']
allowed_uuids = ['*']
webserver = true
port = 8020