aboutsummaryrefslogtreecommitdiff
path: root/nar-herder/server.scm
Commit message (Collapse)AuthorAge
* Increment request metrics for file requestsChristopher Baines2022-06-24
|
* Remove some empty linesChristopher Baines2022-06-24
|
* Add experimental support for serving files by hashChristopher Baines2022-06-10
| | | | | | | | | | This route can be used to provide source files used in packages. The URL pattern is the same as used by guix publish. The main issue with the implementation is that the fibers web server expects the entire response to be in memory, so I'm not sure how well this will scale. Additionally, the code for extracting the file from the nar isn't ideal.
* Encode filenames when passing the request back to nginxChristopher Baines2022-05-17
| | | | This handles filenames which contain characters like ? and =.
* Support handling /nar requestsChristopher Baines2022-04-22
| | | | | | | | If the nar is known about, X-Accel-Redirect is used to pass the request back to the webserver which should then respond with the nar. If the nar isn't known about, then a 404 response is returned. In either case, there's a metric incremented to record the request.
* Add support for exposing some basic metricsChristopher Baines2022-04-17
| | | | In a format understood by Prometheus.
* Support passing a log-level to the nar-herder serverChristopher Baines2022-04-17
| | | | | | | | This means that you can disable the output of requests by specifying a log-level of INFO or greater. Since the nar-herder may respond to so many requests, logging each one is a bit excessive.
* Support specifying TTL's for narinfo responsesChristopher Baines2022-02-02
| | | | Using the same approach as guix publish.
* Check for narinfo existence for the info endpointChristopher Baines2021-12-14
|
* Get most of the functionality sort of workingChristopher Baines2021-12-12
At least working enough to start trying this out, and finding the problems.