jana-photos
Your photos on your own server: a web gallery, and Jana Backups, an Android app that uploads your phone's photos to it. Aiming to be a self-hosted alternative to Google Photos.
Early software. Keep your own backups.
It has been tried with generated files and an Android emulator, not yet with a real phone on the single-machine setup, nor with a large library. One machine is one copy: do not delete photos from a phone because they were uploaded. No app file (APK) is published: you build the Android app yourself.
It has been tried with generated files and an Android emulator, not yet with a real phone on the single-machine setup, nor with a large library. One machine is one copy: do not delete photos from a phone because they were uploaded. No app file (APK) is published: you build the Android app yourself.
What it does
Shows your folder
Point it at a photo folder. A preview comes first, and indexing only reads your photos.One program
The web gallery and the phone service run together on one Linux machine.Pairs by setup code
The web page makes a one-time code. The app then trusts only your server's certificate.Uploads carefully
Uploads can resume. Finished ones are added as new files and never overwrite one.Says what it knows
With one machine the app says “saved on server · one copy”, not “backed up”, and its cleanup does not suggest those files.No outside scripts
The web pages load nothing from other sites.
Know this before you try it
- The server writes into your photo folder. It only adds files. Back the folder up before the first run.
- Use it on a private network or VPN. The web gallery is plain HTTP unless you put your own HTTPS proxy in front. Do not put it on the open internet unless you know what you are doing.
- The separate-services setup needs extra care. Its
startcommand lets direct requests from the same machine in without sign-in, so a local proxy that adds no forwarding header would open the library. Read the warning. The single-machineservecommand asks for sign-in from the same machine too. - Not tried yet: restoring from a backup, updating an installation, and the sample startup service.
- Photo dates: read from JPEG and video metadata. HEIC metadata is not read; other dates come from file names or
YYYY-MMfolders.
Install on one machine
You need Linux, ffmpeg, Go 1.23 or newer, and a photo folder on a filesystem with hard links (not FAT or exFAT). Building the Android app also needs a JDK and Google's Android SDK. After building the program, the core steps are:
# once: data folder, your sign-in (password on stdin), a marker in the photo folder ./jana-photos setup -data DATA -media PHOTOS -user NAME # preview, then add -apply ./jana-photos index -media PHOTOS -db DATA/gallery.db # web gallery and phone service ./jana-photos serve -data DATA
This is an outline. By default the web gallery listens only on that machine; the install guide has the full commands, the options for phones, and how to build and sign the app.