aggiunto servizio mollysocket
This commit is contained in:
parent
513916995f
commit
4e80ff0f6d
31
mollysocket/mollysocket.service
Normal file
31
mollysocket/mollysocket.service
Normal 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
5
mollysocket/prod.toml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user