2020-08-17 17:29:58 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Droppy: self-hosted file storage server
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2022-06-02 00:45:50 +02:00
|
|
|
Type=simple
|
2020-08-17 17:29:58 +02:00
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2022-06-02 00:45:50 +02:00
|
|
|
WorkingDirectory=__FINALPATH__/
|
2020-08-17 17:29:58 +02:00
|
|
|
Environment="NODE_ENV=production"
|
2022-06-02 00:45:50 +02:00
|
|
|
Environment="__YNH_NODE_LOAD_PATH__"
|
2020-08-17 17:29:58 +02:00
|
|
|
ExecStart= __FINALPATH__/droppy.js start -c __FINALPATH__/config -f /home/yunohost.app/__APP__/files
|
|
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
|
|
Restart=always
|
|
|
|
SyslogIdentifier=__APP__
|
|
|
|
StandardOutput=journal
|
|
|
|
StandardError=journal
|
|
|
|
|
|
|
|
[Install]
|
2022-06-02 00:45:50 +02:00
|
|
|
WantedBy=multi-user.target
|