From adbfa2d8d0224455eb8e5a31dc30b60731fa129c Mon Sep 17 00:00:00 2001 From: feinedsquirrel Date: Fri, 10 Sep 2021 22:39:39 -0600 Subject: [PATCH] add supported systems and systemd files --- README.md | 9 +++++++++ systemd/photoview.service | 18 ++++++++++++++++++ systemd/photoview.sysusers.conf | 1 + systemd/photoview.tmpfiles | 2 ++ 4 files changed, 30 insertions(+) create mode 100644 systemd/photoview.service create mode 100644 systemd/photoview.sysusers.conf create mode 100644 systemd/photoview.tmpfiles diff --git a/README.md b/README.md index d76e2657..7e0e04b5 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Password: **demo** - [Demo site](#demo-site) - [Main features](#main-features) +- [Supported Platforms](#supported-platforms) - [Why yet another self-hosted photo gallery](#why-yet-another-self-hosted-photo-gallery) - [Getting started - Setup with Docker](#getting-started---setup-with-docker) - [Set up development environment](#setup-development-environment) @@ -44,6 +45,14 @@ Password: **demo** - **Performant**. Thumbnails are automatically generated and photos first load when they are visible on the screen. In full screen, thumbnails are displayed until the high resolution image has been fully loaded. - **Secure**. All media resources are protected with a cookie-token, all passwords are properly hashed, and the API uses a strict [CORS policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS). +## Supported platforms + +- [Docker](https://hub.docker.com/r/viktorstrate/photoview/) +- [Arch Linux Aur](https://aur.archlinux.org/packages/photoview) +- [Unraid](https://forums.unraid.net/topic/103028-support-photoview-corneliousjd-repo/) +- EmbassyOS: [announcement](https://start9labs.medium.com/new-service-photoview-72ee681b2ff0), [repo](https://github.com/Start9Labs/embassyos-photoview-wrapper) +- [YunoHost](https://github.com/YunoHost-Apps/photoview_ynh) + ## Why yet another self-hosted photo gallery There exists a lot of open-source self-hosted photo galleries already. Here are some, just to mention a few. diff --git a/systemd/photoview.service b/systemd/photoview.service new file mode 100644 index 00000000..cda96224 --- /dev/null +++ b/systemd/photoview.service @@ -0,0 +1,18 @@ +[Unit] +Description=Photoview - Photo gallery for self-hosted personal servers +Documentation=https://photoview.github.io/docs +After=network.target + +[Service] +ExecStart=/usr/lib/photoview/photoview +WorkingDirectory=/usr/lib/photoview +User=photoview +Group=photoview + +ReadWritePaths=/var/lib/photoview + +EnvironmentFile=/etc/photoview.env +CacheDirectory=photoview/media_cache + +[Install] +WantedBy=multi-user.target diff --git a/systemd/photoview.sysusers.conf b/systemd/photoview.sysusers.conf new file mode 100644 index 00000000..ff2e9a5c --- /dev/null +++ b/systemd/photoview.sysusers.conf @@ -0,0 +1 @@ +u photoview - "photoview user" diff --git a/systemd/photoview.tmpfiles b/systemd/photoview.tmpfiles new file mode 100644 index 00000000..28017c62 --- /dev/null +++ b/systemd/photoview.tmpfiles @@ -0,0 +1,2 @@ +e /var/cache/photoview 0750 photoview photoview +e /var/lib/photoview 0750 photoview photoview