Add support for config file in image directory

This config file will be loaded together with the images and defines the
passwords for login and some other parameters.
This commit is contained in:
2023-04-07 00:37:54 +02:00
parent 68f50b5292
commit 8f004e5e65
6 changed files with 160 additions and 18 deletions

14
config.yaml.example Normal file
View File

@ -0,0 +1,14 @@
# Save this file as config.yaml into the image directory
# Config and image list will be updated every 60s. If there is
# an error with the config (or no config at all), no access to
# the images will be granted; check the log in this case of
# errors. Changing the config invalidates all active sessions.
title: Website title
passwords:
- password1
- password2
# Optional, will be displayed above images
top-message: "Please do not share or save these images"