summary refs log tree commit diff stats
path: root/svc
Commit message (Collapse)AuthorAgeFilesLines
* exit if admin password is emptyBenjamin Morrison2021-10-211-1/+1
|
* delete a user, new config option for admin pass. pass is bcrypt hashed on ↵Benjamin Morrison2021-10-215-0/+78
| | | | startup and not stored in plaintext.
* config for admin password, store bcrypt hash in confObjBenjamin Morrison2021-10-213-0/+63
|
* updating module to live at sourcehutBen Morrison2020-06-2020-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 fromBen Morrison2020-04-122-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.12Ben Morrison2020-03-161-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.11Ben Morrison2020-03-162-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 supportBen Morrison2020-03-162-59/+3
|
* some functions were missing comments. added those in where needed.Ben Morrison2019-12-197-0/+34
|
* decoupled tests from personal twtxt.txtBen Morrison2019-12-195-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.8Ben Morrison2019-12-191-2/+4
|
* minor refactor of apiEndpointHandler():Ben Morrison2019-12-191-8/+5
| | | | | reduced early returns removed unnecessary switch statement
* refactored servStatic() to eliminate early returnBen Morrison2019-12-181-8/+13
|
* reduced size of hash for etag to 32bitsBen Morrison2019-12-181-2/+2
|
* switched etags to use fnv hashBen Morrison2019-12-121-10/+14
|
* tick.exit channels now using struct{} instead of boolBen Morrison2019-12-081-4/+4
|
* closeLog channel now accepts struct{} instead of boolBen Morrison2019-12-083-4/+4
|
* fix upgrade process andcreme2019-08-282-30/+30
| | | | remove trailing spaces
* endpoint for version response v0.4.5Ben Morrison2019-08-282-1/+13
|
* license notice at top of each fileBen Morrison2019-07-1120-0/+380
|
* updated internal functionality for registry v0.4.0 v0.4.4Ben Morrison2019-06-198-20/+20
|
* changes related to registry-v0.3.0 v0.4.3Ben Morrison2019-06-187-13/+13
|
* prevent potential ddos via circular registry POST v0.4.2Ben Morrison2019-06-141-1/+6
|
* on SIGINT, push to DB before shutting downBen Morrison2019-06-132-1/+10
| | | | also logging elapsed time for DB pulls
* refactored tls listenerBen Morrison2019-06-131-3/+18
|
* mutex and readability cleanupBen Morrison2019-06-136-45/+22
|
* removed mutex from remoteRegistriesBen Morrison2019-06-136-21/+0
| | | | | slices are safe to use concurrently already. leaving as a struct for possible expansion later.
* updated cacheUpdate benchBen Morrison2019-06-131-1/+1
|
* linter warning about func signatureBen Morrison2019-06-131-1/+1
|
* made svc/ a package instead of a module for ease of developmentBen Morrison2019-06-132-215/+0
|
* added new options to manualBen Morrison2019-06-121-4/+30
|
* removed unused func/varBen Morrison2019-06-121-7/+0
|
* separate request and message logBen Morrison2019-06-125-48/+40
|
* updated depsBen Morrison2019-06-122-3/+3
|
* temporarily disabling cacheUpdate testBen Morrison2019-06-121-0/+5
|
* more context to cacheUpdate test failureBen Morrison2019-06-121-1/+1
|
* testing simple error log functionBen Morrison2019-06-121-0/+15
|
* tests for most of query.goBen Morrison2019-06-111-0/+76
|
* apiPostUser benchmarkBen Morrison2019-06-111-0/+20
|
* cache.go tests finishedBen Morrison2019-06-112-17/+113
|
* cleaned up staticHandlerBen Morrison2019-06-111-10/+8
|
* runtime bugs in staticHandlerBen Morrison2019-06-111-19/+12
|
* fixed content-typesBen Morrison2019-06-111-2/+2
|
* added support for TLS and hostname resolutionBen Morrison2019-06-113-7/+40
|
* check if behind reverse proxyBen Morrison2019-06-114-10/+28
|
* merged indexHandler with cssHandler, updated testsBen Morrison2019-06-113-43/+38
|
* push() changes v0.3.3Ben Morrison2019-06-111-3/+0
|
* updated depsBen Morrison2019-06-112-135/+6
|
* readability changesBen Morrison2019-06-111-6/+0
|
* readability changesBen Morrison2019-06-112-32/+21
|