aboutsummaryrefslogtreecommitdiff
path: root/cmd/server/main.go
AgeCommit message (Collapse)AuthorFilesLines
2023-01-06Refactor routing and handlersMitchell Riedstra1-1/+1
We were building a new gorilla mux on each connection, change that to an *http.ServeMux and build it once for the lifetime of the application. Tell redis to only cache GET requests.
2023-01-06Update site to server configuration via environment variables. Add a genhash ↵Mitchell Riedstra1-40/+74
command. Update docs.
2022-12-07Add basic string functions to default template funcmap. Set a var when page ↵v0.0.20Mitchell Riedstra1-4/+1
is being rendered markdown only.
2022-06-190.0.17a / Alpha. Introduce users and page editing.v0.0.17aMitchell Riedstra1-0/+7
Breaking changes: inc/base.html is now tpl/base.md by default. This can be overridden on the command line. 404.md is now tpl/404.md. This can be overridden with templatedirectory in the configuration file. Additional files: `auth.json` file that stores credentials and settings for authorization cookie. Further notes: This will likely receive some major updates and changes over the next few commits. The scaffolidng is now in place for user accounts, login handling, and page editing. It's all extremely basic at the moment, on the idea list: Listing of all markdown files File uploader and general content management Flags to turn on/off git integration for edits. Download / Upload of all markdown files as a backup/restore. It's of course, all subject to change.
2021-10-24Unix sockets for redis. Page use FS interface. Clear redis func.v0.0.16Mitchell Riedstra1-0/+11
Additionally, Funcs can be passed in.
2021-10-24Use hash in redis. Key can be set in conf.v0.0.15Mitchell Riedstra1-2/+6
2021-10-24Redis caching. Linter config and cleanup.Mitchell Riedstra1-5/+33
2021-07-18Adjust the program a bit, remove clunky "head" templates. Add an example ↵v0.0.13Mitchell Riedstra1-18/+0
site among other improvements
2021-07-12Add atom feed to the go websiteMitchell Riedstra1-5/+37
2021-02-15Another re-structure. Deleting code is wonderful.v0.0.12Mitchell Riedstra1-6/+10
2020-11-15Add a few additional parmaeters. Clean up the import path.Mitch Riedstra1-8/+5
2020-09-26Split up http related stuff out of the page library.Mitch Riedstra1-3/+16
Make it an interface. Rename page to be 'local' reflecting that it reads the website off the local disk. Update the build script to include the go version. Switch to gorilla/mux Remove the convert command, since we're no longer utilizing that old layout or have any need to convert from it.
2019-12-14Tidy up the server command, pull the handlers into the page library. Convert ↵Mitch Riedstra1-20/+12
to go modules. Add a build script and version to the command
2019-12-01Initial Commit. Small command to convert my old setup and basic server that ↵Mitch Riedstra1-0/+45
reads off of the disk for the new setup