Repository navigation
Releases
Fotobogen 1.12.0
One paste sets up a new DigitalOcean droplet, with no terminal.
- One paste sets up a new DigitalOcean droplet:
deploy/droplet-setup.sh, given as the droplet's start-up script (user data), installs Fotobogen under pm2 with Caddy and HTTPS in front, a firewall, and swap on a small server, with no terminal. The setup token is shown in the droplet's Console. Without a domain the site starts at ansslip.ioaddress, and running the script again with a domain moves it there. Documented as the quick way in Your own domain, start to finish, and in the README. Audited before release: the seventh audit is in the security audits.
Fotobogen 1.11.1
A walkthrough for putting Fotobogen on your own domain, from buying the name to HTTPS, and three small fixes.
- A new walkthrough, Your own domain, start to finish, in the documentation and in the README: buying a domain (Porkbun, Namecheap, DNSimple), renting a server, pointing the domain at it, installing, pm2, nginx, and HTTPS, on a plain server or with Laravel Forge, with a check after every step.
- The Forge instructions now say to delete Forge's
location = /favicon.icoandlocation = /robots.txtblocks, which would answer from disk instead of passing those addresses to Fotobogen. publish.sh, which releases the installer to npm and is of use only to Fotobogen's maintainer, moved from the top of the folder toinstaller/publish.sh, beside the installer it publishes. A site's own folder now begins with only what its owner uses.- The photo page and slideshow screenshots show a photo's date, camera, lens and settings. The values are examples, and the README says so: the sample photos carry no camera data.
- The light and dark mode button lines up with the menu links beside it, in all four bundled skins. A skin of your own can do the same with
align-items: centeron.fb-nav.
Fotobogen 1.11.0
An iPhone's photos, the words saved inside a file, alt text for every photo, a folder at once, and a swipe on a phone. It follows a review of the whole program by someone who had never seen it, which found ten defects, all fixed here.
Added
- HEIC, the format an iPhone saves in, is accepted. The file is kept exactly as it came. A JPEG is made from it once, when it arrives, and the web copies are made from that. Up to 25 megapixels: an iPhone's usual 12 or 24 fit, its 48-megapixel setting does not.
- A photo arrives with its words. The title, caption, keywords and alt text that Lightroom, Capture One, Apple Photos and others save inside a file become the photo's title, description, tags and alt text. The upload page says what it read. Switch it off under Settings, New uploads if your files carry notes not meant for visitors.
- Every photo has alt text. One that arrives with none is given a start, from its title, its file's name, or the day it was taken, and is flagged Alt text to check in the Library until you rewrite it or say it is right. Alt text can be changed but not emptied. Photos you already have are given a start the same way the first time this version starts.
pnpm fotobogen import <folder>brings in a whole folder, with--albumsto make an album of each folder inside it, or--album <name>to put everything in one. It skips what is already there, so it can be run again.- Swiping. On a phone, a swipe across a photo goes to the next or the one before: on the photo's page, in the photo opened over the grid, and in the slideshow.
- The RSS feed carries each photo's alt text.
- The upload answer from the admin API lists what was read from the file (
fromFile);GET /api/admin/photos?show=alt-to-checklists photos whose alt text is still to be checked.
Fixed
- A photo set to "Scheduled" with no date was published at once. It is now refused, with the date field marked.
- On a phone the grid showed three or four columns of tiny pictures. It shows two, in all four skins.
- On a phone the slideshow's details lay over its buttons. They rest on top of them now, however many rows the buttons take.
- Choosing a skin that brings a look, then leaving it, lost a look you had set for all photos. Yours is set aside and comes back, and the Skins page says so before you save.
- Three pages ran off the side of a phone: setup step 4, Albums with a private album, and API tokens.
- Leaving a photo's page with changes not yet saved now asks first.
- The arrow keys stopped working in a photo opened over the grid once the link that had focus was gone.
- The question about hearing of new versions lay over the page's own controls on a wide screen. It is part of the page now.
- Every page that does not exist wrote an error to the server's log. It writes nothing.
- A new page of words was public the moment it was added, still empty. It is hidden until you first save it.
- The Albums page now says how to put photos in an album. The upload page links each finished photo to its edit page.
Changed
- For skin writers: the slideshow's details and controls now sit inside one new block,
fb-slideshow__foot. A skin written for an earlier version goes on working as it did; copy three rules from Swiss to get the phone layout right (writing a skin). - The Library's filter "Without alt text" is now "Alt text to check", since no photo is without.
- Documentation corrected where a review found it wrong or out of date, the README's account of how the app is kept private behind a proxy in Docker above all.
Security
The sixth security audit, of everything new here, before release: 8 findings, 1 high, 2 medium, 3 low, 2 informational. Six fixed, one reduced, one accepted.
- A file built for the purpose could stop the site while its words were read (high). They are read in a thread of its own, with five seconds to do it.
- A HEIC could use far more memory than a small server has (medium). It is decoded in a separate process, one at a time, and the limit is 25 megapixels.
fotobogen importgave its pass to whatever program answered at the site's address (medium). It now makes the site prove itself first, and the pass is narrower and expires.- Alt text of invisible characters is refused; such characters are removed from words read out of files. The import no longer follows hard links, and removes only its own pass.
Updating
Admin, System, Update to version 1.11.0, or pnpm fotobogen update. Docker: docker compose pull, then docker compose up -d. The database gains one column, by itself, at the first start; make a backup first, as before any update.
Fotobogen 1.10.0
The slideshow's details say more, and the screenshots are new.
Added
- The slideshow's details list what the photo's page lists. Press a photo in the slideshow and, with its title and description, you now see its size in pixels, the albums it is in, its tags, and its licence, as well as the date taken, camera, lens, and exposure it already gave. Albums and tags are links. Size follows the camera-details setting, as on the photo's page. Where a photo was taken is still never shown in the slideshow, and an album visitors may not see is never named.
GET /api/slideshowgives each slidesize,tags,albums, andlicence. Nothing is removed.
Changed
- For skin writers: the details panel may now hold several paragraphs of the class
fb-slideshow__facts, and the photo page'sfb-tagslist. A skin written for an earlier version shows them without changes; the four built-in skins tidy the spacing of the tags there. - Every screenshot in the README and on fotobogen.com is retaken from this version.
Security
- The fifth security audit, of this change: no findings.
Updating
Admin, System, Update to version 1.10.0, or pnpm fotobogen update. Docker: docker compose pull, then docker compose up -d. Nothing in the database changes.
Fotobogen 1.9.0
Optional two-step login, and the fourth security audit. Updating changes nothing about how you log in until you switch it on.
Added
- Two-step login, as an option under Admin, Two-step login. Switched on, logging in takes your password and then a six-digit code from an authenticator app such as Google Authenticator. Nothing is sent by text message or email. It is off until you switch it on, and updating changes nothing about how you log in.
- Ten backup codes, given when you switch it on, each good for one login when the phone is not to hand. The page shows them again whenever you ask, marks the used ones, lets you download them, and makes ten new ones on request.
- One entry in the authenticator app for a whole server. The key is kept once for the account Fotobogen runs under, so a site you delete and install again, or a second site on the same server, uses the entry the app already has. The entry is named after the server. In Docker each site has its own key unless
TWO_STEP_KEYis set. pnpm fotobogen two-step offswitches it off from the server, for an owner who has lost both the phone and the backup codes;pnpm fotobogen two-step keyshows the server's key, to add to a new phone.- The key and the backup codes are shown only after the password is given again, and no API token can read or change them. Switching two-step login on signs out every other browser.
Security
- The fourth security audit, of two-step login: 6 findings, 2 low and 4 informational; 2 fixed, 4 accepted. Wrong codes are counted for the account as well as for each address, so guessing from many addresses at once is stopped after ten. A backup file never holds the two-step key or the backup codes, and restoring a backup leaves two-step login as the site has it.
Fixed
- A browser test of the sample photos that could fail on a slow Windows machine.
Updating
Admin, System, Update to version 1.9.0, or pnpm fotobogen update. Docker: docker compose pull, then docker compose up -d. The update adds to the database by itself. Two-step login stays off until you switch it on under Admin, Two-step login.
Fotobogen 1.8.0
Pages, search, private albums, a trash, albums to choose from on the front page, a one-line installer, and the third security audit. Updating changes nothing about how your site looks or behaves until you use the new things, with one exception: deleting a photo now moves it to the trash.
Added
- A trash. Deleting a photo, in the library or on its own page, now moves it to the trash: it is off the site at once and kept for 30 days, with the file that was uploaded, then removed for good. Under Admin, Library, Show, Trash a photo can be restored, which puts it back as it was (same address, albums, tags, and place in the order), or deleted for good straight away, which asks first. The library says how many photos are in the trash, and each one there shows the day it will go.
- Uploading a file that is in the trash is refused, with a note saying where it is.
- Pages. A new page in the admin, Pages, for pages of words beside your photographs: About, Contact, anything. Each has an address of its own at the top of the site (
/about) and, unless you take it out, a place in the menu. The text is plain text with a little marking (paragraphs, headings, lists, bold, italic, links), with a preview as you type; web and email addresses become links by themselves. It is never used as HTML, and a link goes only to a web address, an email address, or a page of the site. A page can be hidden while it is written. Up to 50. - Search. Visitors can search your photographs: a Search link in the menu leads to a page with a search box. Every word typed must be found in a photo's title, description, alt text, tags, or the titles of its albums. Only what a visitor can already see is searched; a hidden photo, a photo in the trash, or the name of a hidden album is never found. It works with JavaScript switched off, and search engines are told not to list the results. Its words are under Admin, Site text. For other programs:
GET /api/search?q=. - Albums on the front page. Each album has a switch, Offer it on the front page. The albums switched on appear as a row of names over the photos on the front page; a visitor who chooses one sees that album alone, and All brings everything back. It works with JavaScript switched off. A new album is offered unless you switch it off; your existing albums are not, until you switch them on.
- A shuffled front page. Under Admin, Settings, the front page's photos can be shuffled, a new order for each visit, or kept in the order of your library. A new site starts shuffled. A site you already have keeps the order of its library until you change it. For other programs,
/api/photosstays in the library's order and takesorder=random&seed=. - Private albums. An album can be made Private under Admin, Albums. It then has a link that cannot be guessed, to give to the people who may see it; they need no login. A private album is listed nowhere on the site and can hold hidden photos, which stay off the site: the way to share a client's or a family's photographs. Make a new link replaces the link at once and ends the old one. Search engines are told to keep away, the pages are never stored by browsers or proxies, and no counting script is put on them.
- Sample albums. When you choose the sample photos, they come in two sample albums, "Coast and mountains" and "Desk and table", so a new site shows how albums work, on the albums page and on the front page. Deleting an album never touches its photos, and removing the sample photos takes the sample albums with them unless you have put photos of your own into one.
- A one-line installer,
npx fotobogen@latest, ininstaller/: it checks the tools, asks for a folder, fetches the newest release, installs, builds, and offers to start it. It is published to npm asfotobogen, with its own version numbers and changelog, by./publish.sh. The README and the installation guide now begin with it. - Links in your menu. On the same page, up to eight links of your own, shown in the menu after your pages.
- For other programs:
GET /api/pages/<slug>gives a page's title and text, and/api/sitelists the menu undermenu. - For skins: a page is
<article class="fb-page">with its text in.fb-page-body, and the menu may now hold more links. The search page is.fb-searchwith a form inside, and the row of albums on the front page is.fb-chooser. The four bundled skins are updated; a skin of your own should style.fb-page-bodyand.fb-search__form, and let.fb-navwrap (docs/SKINS.md).
Changed
- For programs using an API token:
DELETE /api/admin/photos/<id>moves a photo to the trash;?forever=1deletes one that is in the trash for good;POST /api/admin/photos/<id>/restoretakes it back out. In bulk actions,deletemoves to the trash, andrestoreanddelete-foreverare new. A deleted photo answers404toGET /api/admin/photos/<id>and is left out of the list unless?trash=1is given. - Webhooks:
photo.deletedis sent when a photo goes to the trash, which is when it leaves the site. Restoring it sendsphoto.published. - While a photo is in the trash, its picture files still exist: an address someone already has keeps working until the photo is deleted for good.
Security
- A third audit, of everything new in this version: 11 findings, none above low; 4 fixed, 6 accepted, 1 open. The whole record is in the README and at fotobogen.com/docs/security-audits. No way was found to see a photo, page, or album a visitor may not see, to change anything without being the owner, or to make text an owner types run as script.
- A counting script can no longer come along into a private album from another page, where it would have told its service the album's link.
- A photo in the trash can no longer be changed through the admin's API.
- A page of text with no spaces in it is read quickly; before, it took a third of a second on every view.
- The installer treats a link that leads nowhere as a folder that is already there. This is in installer 1.0.1.
Updating
Admin, System, Update to version 1.8.0, or pnpm fotobogen update. Docker: docker compose pull, then docker compose up -d. The update adds to the database by itself. Your front page keeps the order of your library, your existing albums are not put on the front page, and nothing is private or hidden that was not before.
If you made a skin of your own, add styles for .fb-page-body, .fb-search__form, and .fb-chooser, and let .fb-nav wrap: see docs/SKINS.md, or copy the rules from a bundled skin.
Fotobogen 1.7.0
The second security audit, of the slideshow for other sites, and a round of fixes found by installing 1.6.0 on a Mac.
Security
- A second audit, of the slideshow for other sites. Seven findings, none above low: three fixed, one reduced, three accepted, none open. The whole record is in the README and at fotobogen.com/docs/security-audits. No way was found to put any other page of a site in a frame, to steer the frame elsewhere, or to switch the slideshow without being the owner.
- The slideshow's address is now decided before any page is made. It must be spelled exactly, and an album or tag must be one a visitor may see. Anything else, a hidden album included, gets a bare "not available" that cannot be framed, where before some of these reached the site's own "not found" page.
- The slideshow's page is marked never to be stored by a browser or a proxy, so switching it off takes effect at once.
- New tests keep these in place, among them a real browser on a second site trying to steer the frame to the home page, the login, and the admin.
Fixed
- Full screen works. The full-screen button over a photo and the one in the slideshow (and the F key there) did nothing: the browser refused, and its console said "Permissions policy violation: fullscreen is not allowed in this document". A header Fotobogen sends with every page forbade full screen outright. The site's own pages are now allowed it. Camera, microphone, location, and screen capture stay refused, and a page framed inside the site gets no full screen.
- The photo that opens over the grid is centred, in a card that is the same for every photo. It sat in the top-left corner of the window, and its size changed with each photo: short for a wide picture, tall for an upright one. It now sits in the middle of the window at one size, with the words in one column down its right side and the picture in the middle of the room that is left, whatever the picture's shape and however little there is to say about it. On a phone it is one column, as before. This is in all four skins. A skin of your own gets the centring without any change; for the fixed card, copy the block that begins
@media (min-width: 52.01rem)from a bundled skin. - The date taken is the day the camera wrote. The date is read from the photo's own metadata at upload, as before, but it was worked out on the server's clock: on a server not set to UTC, a photo taken in the evening could show the next day's date. It is now kept exactly as the camera wrote it. Photos already uploaded keep the date they have; correct one under Admin, Library, or upload it again.
- A photo whose camera data claimed a year below 100 had 1900 added to it. The date is kept as written.
- The tests stood in for the browser's part of full screen, which is why this was missed. A new test asks a real browser whether full screen is allowed, and another measures where the photo window sits.
Changed
- When a file has no "date taken" but does say when it was made (a scan, some phone apps), that date is used. A file that says only when it was last edited, or nothing, leaves the date empty for you to fill in. The field in the admin now says where its date comes from.
- The README and the installation guide explain installing into a folder with another name and running several installs on one machine: what each needs of its own, and why a browser keeps only one login for
localhost.
Updating
Admin, System, Update to version 1.7.0, or pnpm fotobogen update. Docker: docker compose pull, then docker compose up -d.
Fotobogen 1.6.0
Added
- A slideshow for other sites. A new page, Admin, Embed on another site, lets other sites show a slideshow of your public photos inside their own pages, and gives the one line of code to paste there. Choose every photo, one album, or one tag, and a size; the frame shrinks to fit a narrower page and keeps its shape. The slideshow has one bar of controls (first, back, play or pause, forward, last, and where it has got to) with "Powered by Fotobogen" at the end, linked to fotobogen.com. Pressing a photo opens its page on your site in a new tab. It is worked from the keyboard too: the arrow keys, Home, End, and Space.
- It is off until you switch it on. While it is off, its address (
/embed/slideshow) answers "not found", and switching it off again stops it at once on every site that has the code. - Two new pieces of site text, for the First and Last buttons, under Admin, Site text.
Security
- Only the slideshow at
/embed/slideshowmay be shown in a frame by another site, and only while it is switched on. Every other page still refuses, the admin and the login refuse even the site's own pages, and so does anything else asked for under/embed. - The embedded slideshow shows what a visitor can already see and nothing else: no hidden, draft, or scheduled photo, and never a location. It carries no login, loads no counting script whatever is set under Visitor statistics, and every link in it opens in a new tab, so no other page of the site is ever shown inside the frame.
- Only the logged-in owner can switch it on or off. No API token can, and a demo visitor cannot.
Changed
- The site's own slideshow and the embedded one share one piece of code for playing. Nothing about the site's own slideshow changes.
Updating
Admin, System, Update to version 1.6.0, or pnpm fotobogen update. Docker: docker compose pull, then docker compose up -d. Nothing changes for your site unless you switch the slideshow on under Admin, Embed on another site.
Version 1.5.0
Added
- The admin at its own address. Set
ADMIN_HOST=admin.photos.example.com(withSITE_URL) and the admin, the login, and their API answer only at that name, and the public pages only at the site's. A browser keeps the login for the admin's name and never sends it to the public one, so a script on a public page, such as a counting service's, can neither read from the admin nor send to it. This closes the limit described under visitor statistics in 1.4.0. It is optional; without it everything works as before. The README and the installation page have the four steps: DNS,.env, the web server, the certificate. - A test in a real browser: the owner logged in at the admin's address, a hostile script on a public page next door, trying five ways to reach the admin. All five fail.
Security
- The admin, the login, and setup can no longer be shown inside a frame, not even by one of the site's own pages.
- When the owner logs in, pages of the site open in other tabs that carry a counting script load themselves again, without it. This covers a tab left open; it is not proof against a script written to get round it, which is what
ADMIN_HOSTis for.
Changed
- Any name ending in
.localhostcounts as this computer, as browsers treat it, so logging in over plain http works at such a name. - "View your site" in the admin leads to the site's own address when the admin has another.
Upgrading from 1.4.0
Admin, System, Update to version 1.5.0, or pnpm fotobogen update. Docker: docker compose pull, then docker compose up -d; to use ADMIN_HOST with Docker, also fetch the new docker-compose.yml (git pull), which passes the setting on. Nothing changes unless you set ADMIN_HOST.
Version 1.4.0
Added
- Visitor statistics. A new page in the admin lets the owner count visits with a service of their choice: Plausible, Google Analytics, or any service installed with one script tag (Umami, Fathom, GoatCounter, Simple Analytics, Cloudflare Web Analytics, and others). It is off until chosen; a site that does not use it still loads nothing from anywhere else.
- The owner gives a script address, a measurement ID, or
data-attributes, and Fotobogen writes the script tag. No code is typed into the admin, and there is deliberately no box for pasting script: that would let anyone who got the password put code in every visitor's browser. - The script is on public pages only: never on the admin, the login, or setup, and never while the owner is logged in, so their own visits are not counted.
- A page with the script may report to that one service. Everything else stays blocked.
- Only the logged-in owner can change it. API tokens and demo visitors cannot.
- Said plainly where the service is chosen: its script runs on your site's own address, so you are trusting the service with your site as well as your visitors. Fotobogen keeps it off the admin and off pages you open while logged in; it cannot fence it off entirely.
Upgrading from 1.3.3
Admin, System, Update to version 1.4.0, or pnpm fotobogen update. Docker: docker compose pull, then docker compose up -d. Nothing changes for your visitors unless you choose a service under Admin, Visitor statistics.