Describe browsing albums, favorites, and nested Drive galleries on desktop, and link the Android and desktop guides from the release download section. Document Android and Linux range playback, Windows video previews, cross-device hiding, and where cloud originals remain accessible.
3.1 KiB
proton-gallery-website
The homepage for Proton Gallery, at proton-gallery.narl.io. It shares Astro, the locally served Inter font, the dark violet visual style, and the unprivileged nginx container with the Drive and Stream websites.
Development
npm ci
npm run dev # http://localhost:4321/en/
npm run build # type checks and static output in dist/
npm run preview
English strings live in src/i18n/en.ts; locale routing follows the sibling sites.
The root route offers the language choice during development and nginx redirects it to
/en/ in production.
Screenshots and branding
The screenshots are actual Compose UI captures from Gallery's existing Robolectric tests, using the same public Picsum demo photographs as Proton Drive’s photo screenshots, with synthetic account metadata. They contain no private account data.
# In the app checkout, after a development build has produced the native library/bindings:
JAVA_HOME=/path/to/jdk-21 ../proton-gallery/scripts/screenshots.sh --photos ~/.cache/pdfs-screenshots
# Then in this website checkout:
scripts/sync-screenshots.sh ../proton-gallery
node scripts/og-image.mjs
The photo directory is the cache populated by Drive’s scripts/screenshots.sh.
Gallery’s helper runs the screenshot-specific UI tests with an opt-in fixture property
and saves photo captures in android/app/build/photo-screenshots/. Ordinary tests keep
their procedural images and do not overwrite that snapshot directory.
public/logo.svg and public/favicon.svg are copies of the canonical app icon.
The social preview renderer requires Adwaita Sans.
Hosting
SITE_URL defaults to https://proton-gallery.narl.io in Astro, Docker, Compose, and
the example environment. Canonical links, social metadata, and the sitemap use this URL.
cp .env.example .env
# Fill in the operator's public legal-notice details.
docker compose up -d --build
The container listens on port 8080 as an unprivileged user, exposes /healthz, sets the
same security headers as the sibling sites, and writes no nginx access logs. Fonts,
scripts, screenshots, and icons are served from the same origin; the site uses no cookies
or analytics.
Put proxy-specific configuration in compose.override.yaml. With Traefik, route
Host(\proton-gallery.narl.io`)` to container port 8080 on the proxy network and remove
the local port mapping if it is unnecessary. DNS and the external reverse proxy are
managed separately from this source repository.
Runtime legal-notice variables are IMPRESSUM_NAME, IMPRESSUM_STREET,
IMPRESSUM_CITY, and IMPRESSUM_EMAIL, with optional IMPRESSUM_COUNTRY,
IMPRESSUM_PHONE, and HOSTER. The entrypoint escapes values and fills only the
Impressum and privacy pages. Real operator details stay in the ignored .env file.
Content
The site describes the Android app and the native Linux and Windows desktop app. The install section links to GitHub Releases and both platform guides. Full remote offline retention remains under development.
MIT licensed. This is an unofficial project, independent of Proton AG.