Commit Graph

399 Commits

Author SHA1 Message Date
~creme f29bf2702e
Merge branch 'getwtxt:master' into master 2021-10-22 08:57:11 +02:00
Benjamin Morrison 2151021a8c
remove remote registry list push to leveldb because that doesn't work right now 2021-10-21 22:46:38 -04:00
Benjamin Morrison f15ca06d4c
exit if admin password is empty 2021-10-21 21:44:31 -04:00
Benjamin Morrison 57dfee62f0
Merge pull request #15 from getwtxt/delete-user
Delete user endpoint with admin pass
2021-10-21 21:41:44 -04:00
Benjamin Morrison dd3d87bd97
delete a user, new config option for admin pass. pass is bcrypt hashed on startup and not stored in plaintext. 2021-10-21 21:35:23 -04:00
Benjamin Morrison dcb254618d
config for admin password, store bcrypt hash in confObj 2021-10-21 20:45:08 -04:00
Benjamin Morrison d2cbd7b2dc
removed unnecessary 'update' target from Makefile 2020-07-12 02:44:49 -04:00
Benjamin Morrison cccfa2d9f4
updated the upgrade instructions
removed mention of backing up the config file. the makefile doesn't
overwrite config files any longer.
2020-07-12 02:43:11 -04:00
creme 018bcbf3ac
Merge remote-tracking branch 'upstream/master' 2020-06-25 09:10:50 +02:00
Ben Morrison 525f339c80
dealing with time is hard 2020-06-25 00:01:10 -04:00
Ben Morrison 9ff5307f0d
handling datetime edge case where seconds are missing 2020-06-24 23:40:05 -04:00
Ben Morrison 72d297aef4
makefile now safely installs over older versions
checks for existence of getwtxt.yml, style.css, and index.html.
these files won't be overwritten, but the user is notified to
merge them manually.
2020-06-23 03:00:29 -04:00
Ben Morrison c37aa835d0
fixed test case for fetching remote registry data 2020-06-21 02:09:34 -04:00
Ben Morrison 24e86fbcc7
conditionally parsing datestamp as either rfc3339Nano or rfc3339 2020-06-21 01:24:23 -04:00
Ben Morrison 3278fe2b75
codeclimate is misbehaving - disabling for now 2020-06-20 03:19:24 -04:00
Ben Morrison 5db0401b7f
removed github issue template 2020-06-20 03:12:17 -04:00
Ben Morrison 081febb8d6
clarified mailing list for patches/discussion 2020-06-20 03:10:56 -04:00
Ben Morrison 6207e7456d
added go1.14.x to travis build manifest 2020-06-20 03:09:14 -04:00
Ben Morrison 28a414ff69
remove border from anchor links in nav 2020-06-20 03:07:30 -04:00
Ben Morrison 012181e2af
updated makefile to use printf 2020-06-20 03:06:40 -04:00
Ben Morrison 6dd01e129c
updated readme to reflect sourcehut 2020-06-20 02:56:20 -04:00
Ben Morrison 2ded1ca5b4
fixed build manifest
wasn't reading test files of child modules
2020-06-20 02:34:35 -04:00
Ben Morrison 538e305925
updating module to live at sourcehut
Also moving the 'registry' library into this repo, rather
than maintaining them separately. It will still be decoupled,
just live in this repository.
2020-06-20 02:27:31 -04:00
creme ccb3da77f2
Merge remote-tracking branch 'upstream/master' 2020-04-12 23:50:10 +02:00
Ben Morrison 0a69c582ec
added local copy of water.css 2020-04-12 17:25:19 -04:00
Ben Morrison 0daa948c9c
Allowing static files to be served directly from
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
2020-04-12 15:46:23 -04:00
Ben Morrison f2bf68aeda
clean wasn't removing binary previously 2020-04-12 15:45:39 -04:00
Ben Morrison 038f04912c
added static files dir to install section of makefile 2020-04-12 15:45:37 -04:00
creme c3198eb475
Merge remote-tracking branch 'upstream/master' 2020-03-16 21:56:50 +01:00
Ben Morrison 4bae99e227
another source of duplicated statuses fixed
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.
2020-03-16 15:59:09 -04:00
Ben Morrison 50c1520ef5
changing db type/location will no longer work without restart 2020-03-16 15:57:27 -04:00
creme 451bc9fe4a
Merge remote-tracking branch 'upstream/master' 2020-03-16 20:12:37 +01:00
Ben Morrison 21936dea83
no plans to add support for additional databases 2020-03-16 15:00:30 -04:00
Ben Morrison 3bb022fb6f
eliminated panic when serving requests from empty registry
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.
2020-03-16 14:49:06 -04:00
Ben Morrison 23d4356931
updated deps:
fsnotify 1.4.7 -> 1.4.9
getwtxt/registry 0.4.1 -> 0.4.2
gorilla/mux 1.7.3 -> 1.7.4
2020-03-16 14:48:28 -04:00
Ben Morrison 2f3390b815
notice on uninstall that the database remains on disk 2020-03-16 14:47:12 -04:00
Ben Morrison d1ec21ea5b
no need for static builds right now 2020-03-16 03:04:47 -04:00
Ben Morrison 31c992e6ea
removed experimental host matching and tls support 2020-03-16 02:42:35 -04:00
Ben Morrison 271ba7ca8d
building on newer linux image 2020-02-10 17:11:58 -05:00
Ben Morrison 3e7e51515e
updated dependencies 2020-02-10 17:05:16 -05:00
creme 656f60046f
Merge remote-tracking branch 'upstream/master' 2020-02-08 00:53:20 +01:00
Ben Morrison c5df410182
version bump for getwtxt/registry dep 2020-02-07 18:27:25 -05:00
creme 3a024cd2af
Merge branch 'master' of github.com:envs-net/getwtxt 2019-12-23 10:38:14 +01:00
creme f428a80dbd
typo 2019-12-23 10:37:42 +01:00
creme fb71a3ae6d
change config to envs.net 2019-12-23 10:37:42 +01:00
Ben Morrison f532f493bf
leaving db intact on uninstall 2019-12-20 21:45:19 -05:00
Ben Morrison e8b0b0c6d8
minor stylistic change in notes 2019-12-19 21:58:37 -05:00
Ben Morrison e53b843a93
some functions were missing comments. added those in where needed. 2019-12-19 21:21:56 -05:00
Ben Morrison 7db28dd705
decoupled tests from personal twtxt.txt
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.
2019-12-19 16:46:34 -05:00
Ben Morrison f60789a3bd
added testdata/twtxt.txt for tests to run against 2019-12-19 16:32:56 -05:00