nixpkgs/nixos/doc/manual/release-notes
Daniel Xu f1c4d339a5 nixos/wordpress: Use https by default for caddy
Previously, `http://` scheme was hard coded into the caddy config if
`webserver = "caddy"` was chosen. This is fine for local testing, but is
problematic if you want your nixos host to be public facing.

In the public facing case, you generally want to be using TLS. But since
the wordpress module generates the caddyfile rule, the user's nixos
config cannot easily change it to also allow https.

An alternative would be to reverse proxy an https rule to the generated
http rule, but that's somewhat questionable as there's not an internal
http endpoint to proxy to. It might be possible but I couldn't figure
it out.

So simplify by omitting the scheme. This causes caddy to use https by
default and 301 redirect any http requests to the https endpoint. Caddy
will just do the right thing if it's being hosted on a local/internal
hostname (self sign certificates).

This should be backwards compatible with previous default if users are
using reasonable browsers/tools.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
2025-03-29 15:10:35 -06:00
..
release-notes.md 25.05 is Warbler 2024-11-14 09:10:54 -08:00
rl-1310.section.md
rl-1404.section.md
rl-1412.section.md
rl-1509.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
rl-1603.section.md
rl-1609.section.md
rl-1703.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
rl-1709.section.md
rl-1803.section.md
rl-1809.section.md
rl-1903.section.md
rl-1909.section.md nixos/doc/rl-1909: replace wiki reference with official wiki 2024-04-05 16:13:33 -04:00
rl-2003.section.md
rl-2009.section.md ankisyncd: remove 2024-09-11 13:53:06 +08:00
rl-2105.section.md
rl-2111.section.md treewide: fix typos 2025-02-22 02:02:07 +01:00
rl-2205.section.md nixos/k3b: remove, refer users to k3b 24.08 (Qt 6) (#351093) 2025-03-29 14:12:02 +03:00
rl-2211.section.md grafana: 10.4.2 -> 11.0.0 2024-05-14 19:03:25 +02:00
rl-2305.section.md unifi-video: drop 2024-10-01 15:58:19 +01:00
rl-2311.section.md treewide: fix typos 2025-02-22 02:02:07 +01:00
rl-2405.section.md treewide: fix typos 2025-02-22 02:02:07 +01:00
rl-2411.section.md rl-2411: Add note about intel-compute-runtime package 2025-03-10 01:49:59 +05:30
rl-2505.section.md nixos/wordpress: Use https by default for caddy 2025-03-29 15:10:35 -06:00