Giter Site home page Giter Site logo

foto-gallery's Introduction

Edit - Feb 26, 2023

Committed the source code to this repository. You can use VSC to open this as a flutter project. At this time only flutter 'web' is enabled and working.

foto-gallery

This is a flutter based web interface that connects to an existing pigallery2 server to show folders/photos/videos in a mobile friendly format. This is just for testing purposes at this point, and please leave any feedback under issues/discussions in github. pigallery2 server does not work well with CORS, hence you need to create a new nginx web server in the same domain as your running pigallery2 server.

To simplify all this, I have a docker image available that takes 3 properties as environment variables - PiGallery2 URL, username, password - and deploys everything automatically in a container.

Try it and please send me feedback. Note that this app runs as PWA (Progressive web app), hence most mobile browsers support this.

Foto.mp4

Instructions

  1. Create a docker instance. I use portainer, but you can use docker cmd line.
  2. Sample Docker compose file is here, its self-explanatory - takes 3 properties as environment variables.
  3. Only PIGALLERY2_BASEURL_PROP is mandatory, PIGALLERY2_LOGIN_PROP and PIGALLERY2_PASSWORD_PROP are optional and needed only if you are running pigallery2 with login auth. This docker works both with and without auth enabled on pigallery2.
  4. Start the docker instance.
  5. Open Desktop browser and and point to http://host:port/foto/ - /foto/ is mandatory in the URL and hardcoded (for now).
  6. Open Safari on iPhone and point to http://host:port/foto/. Once loaded, you can "share/Add to Home Screen" to add as an app on iphone.

foto-gallery's People

Contributors

kparuchuri avatar kagahd avatar

Stargazers

Jawick avatar  avatar Clint avatar  avatar  avatar  avatar Jerry Woo CW avatar  avatar Euphemia Deathridge avatar  avatar

Watchers

 avatar

foto-gallery's Issues

exec /entryPoint.sh: exec format error on unraid

I loaded your container on unraid using the docker-compose file from the website (only modified the port). When I start the container I'm getting the following error. Any idea what would cause this?

root@Tower:~# docker logs -f foto-gallery
exec /entryPoint.sh: exec format error
exec /entryPoint.sh: exec format error
exec /entryPoint.sh: exec format error
exec /entryPoint.sh: exec format error
exec /entryPoint.sh: exec format error
exec /entryPoint.sh: exec format error

PiGallery2 Foto-Gallery ports on Synology Nas

Hi, I used this docker compose:

version: "2.1"
services:
foto-gallery:
image: varieum/foto-gallery:latest
container_name: foto-gallery
mem_limit: 6g
cpu_shares: 1024
environment:
- PUID=1026
- PGID=100
- TZ=Asia/Jakarta
- PIGALLERY2_BASEURL_PROP=http://192.168.1.134:9842 //CHANGE this to your pigallery2 host and port. Must follow the http url scheme
- PIGALLERY2_LOGIN_PROP=admin //Optional. Specify only if you use pigallery2 authentication. Remove this line if you dont.
- PIGALLERY2_PASSWORD_PROP=admin //Optional. Specify only if you use pigallery2 authentication. Remove this line if you dont.
ports:
- 9843:80 //Map port 80 of container to any port on your host
restart: on-failure:5

and I get this error from portainer:
"failed to deploy a stack: 1 error(s) decoding: * error decoding 'ports': Invalid containerPort: 80"

Any idea why and how to fix it?

Thank you!

Source code available?

It would be nice to have the flutter source code as well and not only the built container.

Server addresses

"pigallery2 server does not work well with CORS, hence you need to create a new nginx web server in the same domain as your running pigallery2 server"

There's an nginx server in the docker container. It's not clear when I use a reverse proxy whether I should have pigallery.mydomain.tld/foto/ as the address for using foto-gallery, or whether the nginx config is rewriting the URI so that I can use foto.mydomain.tld/foto/ instead.
I imagine that it's the former... Which complicates the reverse proxy config outside of the container!
Could there be an additional env, to pass the foto-gallery subdomain into the nginx config for rewriting to match the pigallery one?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.