A quick test with ApacheBench revealed that SQLite really can't handle
multiple concurrent requests with the default settings, due to a locked
database. This fixes that by following the suggestions here:
https://github.com/mattn/go-sqlite3#faq
Testing with ab -n 100 -c 5 http://localhost:8080/blog/post shows that
this fixes the issue. But we could improve performance by reducing
writes, like what's mentioned in T545.
Part of T529
* upstream/master:
Re-add https in log message
Also use bind address on standalone redirect
Allow 'bind' in config to specify bind address
Only log ActivityPub info when debugging
Bump version to 0.4
Move softwareVer to var() block
Add @koehn to AUTHORS
Add `make release-docker`
Move docker build to `make build-docker`
extracted docker command a la `go` and `make`
added docker support to `make release`
removed an unnecessary debugging statement
added .git to make builds cache more effectively and run faster
switched to much smaller alpine image since golang not required at runtime
Updated Dockerfile to produce smaller image with minimum content and a few extra features; added .dockerignore
Minimal changes, definitely WIP, to resolve:
- how to support dualstack when not using localhost?
- net/http package uses string, mentions IP address instead of bind,
need info.
* upstream/master:
Work as a standalone server, including TLS
Include About/Privacy page content in page description
Show instance stats on About page
Change default database name to writefreely
Use and validate database type before connecting
Mention Contributing Guide in README
Add AUTHORS.md
Fix About page link in Admin dash
Include version in archives made by `make release`
Remove keys.sh from make release
Add make release
This supports running the server on port 443, serving secure pages, with
automatic redirects from the insecure site. It also modifies the
configuration process to better guide users through configuring for
running behind a reverse proxy or as a standalone server.
This closes T537