summaryrefslogtreecommitdiff
path: root/httpd.go
AgeCommit message (Collapse)Author
2022-03-15all: change the rescached license to GPL 3.0 or laterShulhan
See https://kilabit.info/journal/2022/gpl/ for more information.
2021-12-21all: move HTTP server option to EnvironmentShulhan
Previously, the options for HTTP server initialized internally, which make it uneasy to changes the default rescached instance when running in development mode. This commit move the HTTP server initialization inside the Environment init method. If its nil, the init will set the default HTTP server options along with the Memfs.
2021-12-19all: refactoring Server initializationShulhan
Previously, we initialize the rescached Server by passing the path to configuration file and initialize the environment inside the server. This commit changes it to pass the instance of Environment. The idea is to allow creating and running rescached Server without creating configuration file first.
2021-12-04all: sync with latest share moduleShulhan
This changes update the code based on refactoring on lib/dns package on share module.
2021-07-13go.mod: update to latest share moduleShulhan
Changes affected by update, * lib/http: changes on Endpoint.Call function signature * lib/http: changes on CORS configuration * lib/test: changes on the Assert function signature
2021-01-22_www: display the list of caches in front pageShulhan
When user open the rescached web interface, the front page will render and refresh the list of non-local caches per 10 seconds.
2021-01-20all: rewrite the web user interface and the APIsShulhan
2021-01-12all: update with latest share modulesShulhan
This changes affect how the memfs.New and GoGenenerate called, does not affect the user.
2020-09-06all: various changesShulhan
* Add function to search and remove non-local caches * Refactoring no how to create and remove record from hosts file
2020-09-05all: various fixes and clean upsShulhan
* Trim dot "." suffix on RR.Name before creating new one * Decrease the notification from default (5 seconds) to 3 seconds * Use the phrase "zone file" instead of "master file" * Update the SOA fields information to be less technical.
2020-09-04_www: reorder the create record fields on Zone interfaceShulhan
Previously, the fields to create new record is name, type, and value. This commit move the type field to the top so when the type changes, the fields below it also changes according to its type. This is to simplify the field format for PTR record.
2020-09-04httpd: fix error return value when handling delete RRShulhan
2020-09-02all: handle saving the PTR record on Zone file editorShulhan
2020-08-25go.mod: update with latest share packageShulhan
Add second parameter to method PopulateCachesByXxx for clearity.
2020-08-23all: replace the internal hosts file with dns.HostsFileShulhan
2020-08-23all: replace hosts with dns.ResourceRecordShulhan
Both type hold the same fields, so use one from dns library.
2020-08-23httpd: move the api path to constsShulhan
2020-08-22all: change "Master" word to "Zone"Shulhan
While at it, * update code with latest dns library * check for empty name servers when updating environment
2020-08-18httpd: implement functions to create and delete master fileShulhan
2020-08-17all: implement web UI to manage master zone filesShulhan
Currently, it allow user to add or remove new resource record from the master zone file.
2020-07-26httpd: fetch the hosts block file if its not exist when enabledShulhan
While at it, return an error when doing update on hosts block.
2020-07-26all: make enabling and disabling hosts block without restartShulhan
2020-07-26wui: update the hosts block last-updated formatShulhan
Use the format "Year-month-day hour:minute:second TZ" for last updated value.
2020-07-26all: implement UI to create, update, delete hosts file in hosts.dShulhan
The UI will update (insert or remove) the records on cache on the fly.
2020-07-26all: rename rescached_httpd.go to httpd.goShulhan