-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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/dokuwiki: Don't force http with Caddy #327743
Conversation
this really makes sense to me. would it be possible to somehow deprecate the old behaviour and add a warning while upgrading? so that we won't break the behaviour with the next release and add a deprecation warning |
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.
Maybe mention it in the release notes for 25.05
Caddy usually expects just a hostname without scheme to do its automatic HTTPS. It is possible to get the old behavior (only HTTP) by setting `services.caddy.virtualHosts.<host>.hostName`.
fe8462a
to
7e06be5
Compare
I rebased the commit now and added an entry to the release notes. |
Somehow NixOS tests with Caddy fail on master, also Here's my fix #371205 Probably we'll have to do this for Dokuwiki module too? |
The test is failing because of invalid default logging configuration from the caddy module:
I bisected the test failure and found 7c52e7a as the first bad commit. Looks like previous caddy versions ignored errors while opening the log file. I think this should be fixed in the caddy module so that it does not generate invalid configuration. |
Seems like an upstream regression caddyserver/caddy#6766 |
Description of changes
Caddy usually expects just a hostname without scheme to do its automatic HTTPS. The dokuwiki plugin always adds
http://
to the hostname, which is surprising and probably not what most users want. It is possible to get the old behavior (only HTTP) by settingservices.caddy.virtualHosts.<host>.hostName
.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.