A multistage indexer and template generator to create a gallery that is served via an S3 Compatible Host
Go to file
c0de 1d24b8bcad move reaction section to own template 2023-12-29 18:35:09 -06:00
.vscode sync vscode settings 2023-12-28 23:15:03 -06:00
templates move reaction section to own template 2023-12-29 18:35:09 -06:00
.editorconfig Initial Commit 2019-04-08 21:27:07 -05:00
.gitignore sync vscode settings 2023-12-28 23:15:03 -06:00
GenGallery.py Modularize into template files, add root gen 2019-04-10 00:00:33 -05:00
GenTemplate.py Modularize into template files, add root gen 2019-04-10 00:00:33 -05:00
GenThumb.py Modularize into template files, add root gen 2019-04-10 00:00:33 -05:00
README.md update instructions 2019-04-09 14:22:46 -05:00
license.txt Change license to BSD-3 Clause from MIT 2023-12-28 23:08:00 -06:00
test.py have reactions enabled 2023-12-29 18:34:42 -06:00

README.md

Simple S3 Gallery

This is a very simple web gallery that depends on all your files being hosted away from this server (can be static!). Basically it expects your storage be mounted and readable by your current user.

After scanning through your storage, it will generate thumbnails locally and a list of all the public URLs. This list is fed into the layout generator to create the gallery site.

Upcoming: Systemd timer to scan this daily

Usage:

  1. Configure your S3 bucket to have public read permissions
  2. Have your S3 bucket mounted and readable (I used s3fs-fuse)
  3. export BASEURI="https://[your s3 bucket URL here]"
  4. export S3MOUNT=/path/to/your/bucket/mount
  5. export THUMBNAILS=/path/to/stored/thumbnails
  6. Generate thumbnails - ./GenThumb.py -b "Specific/Folder/Inside/S3MOUNT" -- WARNING - This will create a thread for every image found, ensure your computer can handle the load
  7. Generate an index/single page gallery - ./GenTemplate.py -p [Pathlist file from GenThumb]
  8. You now have a fully static gallery! Install the index.html and thumbs directory on your webserver