Skip to content

v0.15.0

Latest

Choose a tag to compare

@compscidr compscidr released this 03 Oct 17:59
· 31 commits to main since this release
a218287

Everyone is signed out once when a site upgrades to this release (the session cookie is renamed, see below). After that, upgrades no longer sign anyone out.

What's Changed

  • Keep sessions across restarts and container upgrades in #673 (closes #667)
  • Ship no personal media; upload page heroes from the page editor in #676 (closes #669)
  • Compose file and template.env: SQLite on one volume by default in #674 (closes #656)
  • Document moving an existing site into GOBLOG_DATA_DIR in #675 (closes #670)

Sessions survive restarts and upgrades

Two things signed everybody out:

  • The install wizard's database step rewrote .env with only the database settings, dropping the session key. The first restart after an install made a new one. The step now replaces only its own lines.
  • The session cookie was named after the machine's hostname, which Docker makes up for every new container, so any upgrade that replaced the container signed everybody out. It is now always goblog_session. Changing the name is what signs everyone out this one time.

Upload a page's hero image or video

The page editor's hero field has a file input: choose an image or a video and it is uploaded and the URL and type are filled in. Until now a hero had to be a URL to a file someone had put on the server.

No personal media in the image

goblog shipped the original author's photos and two videos (63 MB), used his photo as the default landing image and his photo and video as the heroes of a fresh install's About and Writing pages. They are gone; the default landing image is a neutral placeholder at the same path.

Six templates in the default theme that nothing rendered (about, archives, posts, presentations, projects, tags) are removed along with their handlers.

Docker Compose

docker-compose.yml now runs goblog alone with SQLite and GOBLOG_DATA_DIR on a named volume, with a commented-out PostgreSQL service. It used to start MySQL and phpMyAdmin and load template.env into goblog's environment. template.env defaults to SQLite.

Upgrading

  • If a page's hero is one of the removed files (/img/hero_rigolet.jpg, /img/aidecentralized.jpg, /img/jason.jpg, /img/code.jpg, /vid/redtree.mp4, /vid/mesh.mp4), upload your own copy and point the page at it before upgrading, or the hero will be broken.
  • If your theme overrides one of the removed templates it keeps working; a theme that includes one of them by name would fail validation (none of the directory themes do).
  • Moving an existing Docker site into a single data directory is optional; see UPGRADING.md.

Full Changelog: v0.14.0...v0.15.0