mirror of
https://github.com/YunoHost-Apps/photoprism_ynh.git
synced 2024-09-03 19:56:41 +02:00
commit
5ece336889
2 changed files with 14 additions and 3 deletions
|
@ -6,8 +6,19 @@ After=network.target
|
||||||
Type=simple
|
Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
|
|
||||||
|
# Have all filesystem look like invisible for the service
|
||||||
|
TemporaryFileSystem=/:ro
|
||||||
|
|
||||||
|
# Manually mount what is needed for the service to run
|
||||||
|
# Ref: https://www.sherbers.de/use-temporaryfilesystem-to-hide-files-or-directories-from-systemd-services/
|
||||||
|
|
||||||
|
BindReadOnlyPaths=/lib/ /lib64/ /usr/lib/ /usr/lib64/ /etc/ld.so.cache /etc/ld.so.conf /etc/ld.so.conf.d/ /etc/bindresvport.blacklist /usr/share/zoneinfo/ /usr/share/locale/ /etc/localtime /usr/share/common-licenses/ /etc/ssl/certs/ /etc/alternatives/
|
||||||
|
BindReadOnlyPaths=/dev/log /run/systemd/journal/socket /run/systemd/journal/stdout /run/systemd/notify
|
||||||
|
BindPaths=/var/www/photoprism /var/www/photoprism/live/bin /home/yunohost.app/photoprism /usr /etc /var /home /dev /etc /usr /media /mnt /opt /proc /run /srv /sys /tmp
|
||||||
|
|
||||||
EnvironmentFile=__FINALPATH__/.env
|
EnvironmentFile=__FINALPATH__/.env
|
||||||
WorkingDirectory=__FINALPATH__/
|
WorkingDirectory=__FINALPATH__/live/bin
|
||||||
ExecStart=__FINALPATH__/live/bin/photoprism --trace start
|
ExecStart=__FINALPATH__/live/bin/photoprism --trace start
|
||||||
StandardOutput=append:/var/log/__APP__/__APP__.log
|
StandardOutput=append:/var/log/__APP__/__APP__.log
|
||||||
StandardError=inherit
|
StandardError=inherit
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "AI-Powered Photos App for the Decentralized Web",
|
"en": "AI-Powered Photos App for the Decentralized Web",
|
||||||
"fr": "Gestion de photos en ligne"
|
"fr": "Gestion de photos en ligne"
|
||||||
},
|
},
|
||||||
"version": "2022.07.30~ynh2",
|
"version": "2022.07.30~ynh3",
|
||||||
"url": "photoprism.app",
|
"url": "photoprism.app",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
"name": "Thovi98"
|
"name": "Thovi98"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 11.0.7"
|
"yunohost": ">= 11.0.9.11"
|
||||||
},
|
},
|
||||||
"multi_instance": true,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
|
|
Loading…
Add table
Reference in a new issue