modules/python-http-handlers: init #146

Open
oysteikt wants to merge 2 commits from python-http-handlers into main
Owner

Make the socket activated python http handler from gatus' minecraft-checker into a template, and rewrite minecraft-checker to use this template.

Make the socket activated python http handler from gatus' minecraft-checker into a template, and rewrite minecraft-checker to use this template.
oysteikt requested review from felixalb 2026-07-16 11:01:10 +02:00
oysteikt added 2 commits 2026-07-16 11:03:22 +02:00
ildkule/gatus/minecraft-checker: rewrite to use python-http-handlers module
Eval nix flake / evals (pull_request) Successful in 6m46s
Eval nix flake / evals (push) Successful in 7m1s
ed411cdf6d
oysteikt force-pushed python-http-handlers from 59b020e14d to ed411cdf6d 2026-07-16 11:03:22 +02:00 Compare
felixalb approved these changes 2026-07-16 11:59:53 +02:00
felixalb left a comment
Owner

If this change is tested and working, I think it's fine :)

If this change is tested and working, I think it's fine :)
@@ -0,0 +14,4 @@
name = lib.mkOption {
type = lib.types.str;
default = "phh-${name}";
Owner

Consider using a more descriptive name to help troubleshooting and make it more immediately identifyable, e.g. `gatus-http-handler-${name}" or something

Consider using a more descriptive name to help troubleshooting and make it more immediately identifyable, e.g. `gatus-http-handler-${name}" or something
@@ -0,0 +26,4 @@
listenStreams = lib.mkOption {
type = with lib.types; listOf str;
default = [
"/run/phh-${name}.socket"
Owner

Does this ignore the name option above, and use this naming scheme anyways? If so, why? And if not, will this become /run/phh-phh-name.socket when using the default value in the name option above?

Does this ignore the name option above, and use this naming scheme anyways? If so, why? And if not, will this become `/run/phh-phh-name.socket` when using the default value in the name option above?
@@ -0,0 +59,4 @@
'';
};
enableDefaultHardening = lib.mkEnableOption "" // {
Owner

Should this option exist? If it is not there, users are incentivized to fix the specific option(s) that they are having problems with, rather than just disabling everything

Should this option exist? If it is not there, users are incentivized to fix the specific option(s) that they are having problems with, rather than just disabling everything
@@ -0,0 +104,4 @@
description = ''
A list of flake8 rules to ignore while linting the python code.
An opinionated list of bogus rules (according to module author) is provided as default.
Owner

👀

👀
Some checks are pending
Eval nix flake / evals (pull_request) Successful in 6m46s
Eval nix flake / evals (push) Successful in 7m1s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin python-http-handlers:python-http-handlers
git checkout python-http-handlers
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Drift/pvv-nixos-config#146