summaryrefslogtreecommitdiffstats
path: root/config/albumen.service
diff options
context:
space:
mode:
authorKen <ken@jots.org>2026-05-09 04:41:03 +0000
committerKen <ken@jots.org>2026-05-09 04:41:03 +0000
commitc75beda743dfd6af63f512e928d0889d9ead3973 (patch)
treebed91fd4f9d36a905be0b1ef990457a1e37e567b /config/albumen.service
Initial commit — Albumen photo album
Ruby/Sinatra self-hosted photo album with directory hierarchy, per-photo captions and visibility, lightbox, slideshow, admin UI, and Let's Encrypt HTTPS via Apache reverse proxy on prouter. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'config/albumen.service')
-rw-r--r--config/albumen.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/albumen.service b/config/albumen.service
new file mode 100644
index 0000000..9fea12f
--- /dev/null
+++ b/config/albumen.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Albumen photo album (Puma)
+After=network.target
+
+[Service]
+Type=simple
+User=albumen
+Group=albumen
+WorkingDirectory=/opt/albumen
+Environment=RACK_ENV=production
+Environment=MEDIA_ROOT=/var/albumen
+Environment=CACHE_ROOT=/opt/albumen/cache/thumbs
+Environment=CONFIG_PATH=/opt/albumen/config.yml
+ExecStart=/usr/local/bin/bundle exec puma -C config/puma.rb
+Restart=on-failure
+RestartSec=5
+
+[Install]
+WantedBy=multi-user.target