Verified Commit e96d9757 authored by Aral Balkan's avatar Aral Balkan
Browse files

Document new cascading archives feature and bump the version number

parent 50378e89
......@@ -8,91 +8,97 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Nothing yet.
## [8.2.0] - 2019-04-20
### Added
- Automatic cascading archive support for an evergreen web. Just add previous static backups of your site into specially-named folders and they will be served as fallbacks for links that no longer exist on the latest version of your site.
## [8.1.1] - 2019-04-18
## Fixed
### Fixed
- Automatic privilege escalation for binary now also works when using the reverse proxy.
## [8.1.0] - 2019-04-18
## Added
### Added
- HTTP → HTTPS and WS → WSS reverse proxy (for local mode only).
## [8.0.0] - 2019-04-16
## Added
### Added
- Native binaries.
## Changed
### Changed
- (Breaking) Simplified commandline vocabulary; now using command syntax (not options syntax).
- Running as daemon is only supported on platforms with systemd.
## Fixed
### Fixed
- Fix auto-restart after automatically obtaining privileged port binding privileges via setcap during first run on Linux.
## [7.1.0] - 2019-04-01
## Added
### Added
- `--offline` command to take a running live server offline (remove it from startup items and delete it from the process manager if necessary).
## Changed
### Changed
- Simplified the `--help` display.
## [7.0.1] - 2019-04-01
## Fixed
### Fixed
- No longer using a custom directory for pm2 files (fixes directory not found issue).
## [7.0.0] - 2019-03-31
## Added
### Added
- `--live` flag to run as daemon and handle crashes/restarts via integrated pm2 process manager.
- `--monitor` command to monitor an already-running live server daemon process.
- `--logs` command to display and tail the web server logs for an already-running live server daemon process.
- `--info` command to display detailed information for an already-running live server daemon process.
## Changed
### Changed
- (Breaking) Options that are not boolean flags now require an equals sign. This means that boolean flags like --live and --global can now be used before or after the path to be served whereas previously the path would not be registered if a boolean flag was used before it.
- (Breaking) The `--global` flag is now called `--staging`.
## [6.4.0] - 2019-03-31
## Added
### Added
- Native [404 to 302](https://4042302.org/) support.
- Programmatic access to the default 404 and 500 error page content.
## [6.3.0] - 2019-03-30
## Added
### Added
- You can now create custom error pages for 404 and 500 errors.
## [6.2.0] - 2019-03-12
## Changed
### Changed
- Uses latest ACME TLS that disables all Greenlock-related telemetry from submodules (such as acme, acme-v2, and rsa-compat) and accepts hostnames as valid local identifiers in place of the artificial and privacy-eroding email address requirement imposed earlier by Greenlock.js).
## [6.0.0] – 2019-03-09
## Changed
### Changed
- __Name:__ HTTPS Server is now called Indie Web Server.
- __NPM module:__ @ind.ie/https-server is now @ind.ie/web-server.
- __Source code repository:__ Now located at https://source.ind.ie/hypha/tools/web-server/.
## Added
### Added
- [Helmet](https://helmetjs.github.io/) for securing the Express app further.
......
......@@ -171,9 +171,30 @@ If you want to serve a directory that has the same name as a command, you can sp
When you use the `global` or `enable` commands, globally-trusted Let’s Encrypt TLS certificates are automatically provisioned for you using ACME TLS the first time you hit your hostname. The hostname for the certificates is automatically set from the hostname of your system (and the _www._ subdomain is also automatically provisioned).
## Native 404 → 302 support for an evergreen web
## Native support for an Evergreen Web
What if links never died? What if we never broke the Web? What if it didn’t involve any extra work? It’s possible. And easy. Just make your 404s into 302s.
What if links never died? What if we never broke the Web? What if it didn’t involve any extra work? It’s possible. And, with Indie Web Server, it’s easy.
### Native archive cascade support
If you have a static archive of the previous version of your site, you can have Indie Web Server automatically serve it for you. For example, if your site is being served from the `my-site` folder, just put the archive of your site into a folder named `my-site-archive-1`:
```
|- my-site
|- my-site-archive-1
```
If a path cannot be found in `my-site`, it will be served from `my-site-archive-1`.
And you’re not limited to a single archive (and hence the “cascade” bit in the name of the feature). As you have multiple older versions of your site, just add them to new folders and increment the archive index in the name. e.g., `my-site-archive-2`, `my-site-archive-3`, etc.
Paths in `my-site` will override those in `my-site-archive-3` and those in `my-site-archive-3` will, similarly, override those in `my-site-archive-2` and so on.
What this means that your old links will never die but if you do replace them with never content in never versions, those will take precedence.
### Native 404 → 302 support
But what if the previous version of your site is a dynamic site and you either don’t want to lose the dynamic functionality or you simply cannot take a static backup. No worries. Just move it to a different subdomain or domain and make your 404s into 302s.
Indie Web Server has native support for [the 404 to 302 technique](https://4042302.org) to ensure an evergreen web. Just serve the old version of your site (e.g., your WordPress site, etc.) from a different subdomain and tell Indie Web Server to forward any unknown requests on your new static site to that subdomain so that all your existing links magically work.
......
{
"name": "@ind.ie/web-server",
"version": "8.1.1",
"version": "8.2.0",
"description": "A secure and seamless Small Tech personal web server.",
"main": "index.js",
"bin": "bin/web-server.js",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment