Upload full Albumik YunoHost package
This commit is contained in:
20
conf/albumik.service
Normal file
20
conf/albumik.service
Normal file
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Albumik private photo album
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__
|
||||
Environment=ALBUMIK_CONFIG=/etc/__APP__/config.json
|
||||
ExecStart=/usr/bin/python3 __INSTALL_DIR__/backend/app.py
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=full
|
||||
ReadWritePaths=__DATA_DIR__
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user