photos: More Ansible config for the gallery service

This commit is contained in:
polyfloyd 2024-06-30 18:51:18 +02:00
parent d1f171abf0
commit 893c8133f5
7 changed files with 33 additions and 6 deletions

View file

@ -1,3 +1,5 @@
# {{ ansible_managed }}
[Unit]
Description=Run every 15 minutes

View file

@ -0,0 +1,12 @@
{
"listen": {
"port": 4567
},
"pictureFolder": "{{ photos_path }}",
"thumbnails": {
"height": 300,
"quality": 60
},
"pathPrefix": "/fotos",
"paginationThreshold": 100
}

View file

@ -1,4 +1,4 @@
# Managed by Ansible
# {{ ansible_managed }}
[Unit]
Description=Gallery service
@ -7,7 +7,7 @@ After=network.target
[Service]
ExecStart=/usr/bin/node /opt/photo-gallery/server.js
Restart=always
RestartSec=3
RestartSec=10
[Install]
WantedBy=multi-user.target

View file

@ -1,6 +1,6 @@
#!/usr/bin/perl -w
# Managed by Ansible
# {{ ansible_managed }}
use strict;
use Net::MQTT::Simple;

View file

@ -1,4 +1,4 @@
# Managed by Ansible
# {{ ansible_managed }}
[Unit]
Description=Photos to MQTT