Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | exit if admin password is empty | Benjamin Morrison | 2021-10-21 | 1 | -1/+1 |
| | |||||
* | delete a user, new config option for admin pass. pass is bcrypt hashed on ↵ | Benjamin Morrison | 2021-10-21 | 5 | -0/+78 |
| | | | | startup and not stored in plaintext. | ||||
* | config for admin password, store bcrypt hash in confObj | Benjamin Morrison | 2021-10-21 | 3 | -0/+63 |
| | |||||
* | updating module to live at sourcehut | Ben Morrison | 2020-06-20 | 20 | -62/+56 |
| | | | | | | Also moving the 'registry' library into this repo, rather than maintaining them separately. It will still be decoupled, just live in this repository. | ||||
* | Allowing static files to be served directly from | Ben Morrison | 2020-04-12 | 2 | -3/+14 |
| | | | | | | | | | | a directory specified in the config. Added a handler to svc.go:Start() to serve /static/ Added default value in conf.go for "StaticFilesDirectory" in the config file. Read the value of StaticFilesDirectory in config to the config global in conf.go | ||||
* | another source of duplicated statuses fixed v0.4.12 | Ben Morrison | 2020-03-16 | 1 | -4/+0 |
| | | | | | | when changing config options, the database would be closed, then reopened, then the data would be pulled into memory. this caused duplicate status entries to form in the registry. | ||||
* | eliminated panic when serving requests from empty registry v0.4.11 | Ben Morrison | 2020-03-16 | 2 | -1/+7 |
| | | | | | | | | | | | when generating an etag from a query that returns no results, indexing into the byte slice caused that thread to panic. now checking for a nil byte slice or a small byte slice in handlers.go:46:getEtag() on nil byte slice, return empty string for etag. on small byte slice, don't truncate it, but return the whole thing. | ||||
* | removed experimental host matching and tls support | Ben Morrison | 2020-03-16 | 2 | -59/+3 |
| | |||||
* | some functions were missing comments. added those in where needed. | Ben Morrison | 2019-12-19 | 7 | -0/+34 |
| | |||||
* | decoupled tests from personal twtxt.txt | Ben Morrison | 2019-12-19 | 5 | -25/+25 |
| | | | | | | | | Rather than use my personal twtxt.txt file, I'm using the mocked twtxt.txt file I just added to the repository for test data. It is being fetched via https from github to avoid having to get rid of the url validity check in the associated registry library. | ||||
* | truncating etag v0.4.8 | Ben Morrison | 2019-12-19 | 1 | -2/+4 |
| | |||||
* | minor refactor of apiEndpointHandler(): | Ben Morrison | 2019-12-19 | 1 | -8/+5 |
| | | | | | reduced early returns removed unnecessary switch statement | ||||
* | refactored servStatic() to eliminate early return | Ben Morrison | 2019-12-18 | 1 | -8/+13 |
| | |||||
* | reduced size of hash for etag to 32bits | Ben Morrison | 2019-12-18 | 1 | -2/+2 |
| | |||||
* | switched etags to use fnv hash | Ben Morrison | 2019-12-12 | 1 | -10/+14 |
| | |||||
* | tick.exit channels now using struct{} instead of bool | Ben Morrison | 2019-12-08 | 1 | -4/+4 |
| | |||||
* | closeLog channel now accepts struct{} instead of bool | Ben Morrison | 2019-12-08 | 3 | -4/+4 |
| | |||||
* | fix upgrade process and | creme | 2019-08-28 | 2 | -30/+30 |
| | | | | remove trailing spaces | ||||
* | endpoint for version response v0.4.5 | Ben Morrison | 2019-08-28 | 2 | -1/+13 |
| | |||||
* | license notice at top of each file | Ben Morrison | 2019-07-11 | 20 | -0/+380 |
| | |||||
* | updated internal functionality for registry v0.4.0 v0.4.4 | Ben Morrison | 2019-06-19 | 8 | -20/+20 |
| | |||||
* | changes related to registry-v0.3.0 v0.4.3 | Ben Morrison | 2019-06-18 | 7 | -13/+13 |
| | |||||
* | prevent potential ddos via circular registry POST v0.4.2 | Ben Morrison | 2019-06-14 | 1 | -1/+6 |
| | |||||
* | on SIGINT, push to DB before shutting down | Ben Morrison | 2019-06-13 | 2 | -1/+10 |
| | | | | also logging elapsed time for DB pulls | ||||
* | refactored tls listener | Ben Morrison | 2019-06-13 | 1 | -3/+18 |
| | |||||
* | mutex and readability cleanup | Ben Morrison | 2019-06-13 | 6 | -45/+22 |
| | |||||
* | removed mutex from remoteRegistries | Ben Morrison | 2019-06-13 | 6 | -21/+0 |
| | | | | | slices are safe to use concurrently already. leaving as a struct for possible expansion later. | ||||
* | updated cacheUpdate bench | Ben Morrison | 2019-06-13 | 1 | -1/+1 |
| | |||||
* | linter warning about func signature | Ben Morrison | 2019-06-13 | 1 | -1/+1 |
| | |||||
* | made svc/ a package instead of a module for ease of development | Ben Morrison | 2019-06-13 | 2 | -215/+0 |
| | |||||
* | added new options to manual | Ben Morrison | 2019-06-12 | 1 | -4/+30 |
| | |||||
* | removed unused func/var | Ben Morrison | 2019-06-12 | 1 | -7/+0 |
| | |||||
* | separate request and message log | Ben Morrison | 2019-06-12 | 5 | -48/+40 |
| | |||||
* | updated deps | Ben Morrison | 2019-06-12 | 2 | -3/+3 |
| | |||||
* | temporarily disabling cacheUpdate test | Ben Morrison | 2019-06-12 | 1 | -0/+5 |
| | |||||
* | more context to cacheUpdate test failure | Ben Morrison | 2019-06-12 | 1 | -1/+1 |
| | |||||
* | testing simple error log function | Ben Morrison | 2019-06-12 | 1 | -0/+15 |
| | |||||
* | tests for most of query.go | Ben Morrison | 2019-06-11 | 1 | -0/+76 |
| | |||||
* | apiPostUser benchmark | Ben Morrison | 2019-06-11 | 1 | -0/+20 |
| | |||||
* | cache.go tests finished | Ben Morrison | 2019-06-11 | 2 | -17/+113 |
| | |||||
* | cleaned up staticHandler | Ben Morrison | 2019-06-11 | 1 | -10/+8 |
| | |||||
* | runtime bugs in staticHandler | Ben Morrison | 2019-06-11 | 1 | -19/+12 |
| | |||||
* | fixed content-types | Ben Morrison | 2019-06-11 | 1 | -2/+2 |
| | |||||
* | added support for TLS and hostname resolution | Ben Morrison | 2019-06-11 | 3 | -7/+40 |
| | |||||
* | check if behind reverse proxy | Ben Morrison | 2019-06-11 | 4 | -10/+28 |
| | |||||
* | merged indexHandler with cssHandler, updated tests | Ben Morrison | 2019-06-11 | 3 | -43/+38 |
| | |||||
* | push() changes v0.3.3 | Ben Morrison | 2019-06-11 | 1 | -3/+0 |
| | |||||
* | updated deps | Ben Morrison | 2019-06-11 | 2 | -135/+6 |
| | |||||
* | readability changes | Ben Morrison | 2019-06-11 | 1 | -6/+0 |
| | |||||
* | readability changes | Ben Morrison | 2019-06-11 | 2 | -32/+21 |
| |