-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/acme: Allow using lego's built-in web server #125256
Conversation
This isn't a very complex change, but mentioning @NixOS/acme regardless since I don't think that happens automatically. |
see also #88531 (thanks(?) stale bot) |
Ugh, I swear I searched for this but couldn't find anything related |
It’d be good to include the |
Infact Deviant, if you were to pull the proposed |
Yep, I'll look at combining the two in a bit once I'm not busy |
Currently, we hardcode the use of --http.webroot, even if no webroot is configured. This has the effect of disabling the built-in server. Co-authored-by: Chris Forno <jekor@jekor.com>
There. The patch now incorporates the functionality of #88531, and thus supersedes it. Heads up: I've not tested this version, although I believe it should work. |
Does this require further changes, or is it okay as-is? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to double check what --http.port
accepts but this looks good :) Nice one on the AmbientCapabilities too.
I'm still good for a merge on this and infact I'm gonna say it'll block #147784 . This PR has been around long enough that the work to rebase should fall on me in that other PR. I'll also add a test too. |
Thanks! |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/problem-with-security-acme-and-listenhttp-option/16790/5 |
Motivation for this change
Currently, we hardcode the use of
--http.webroot
, even if no webroot isconfigured. This has the effect of disabling the built-in server.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)