nixos/nginx: forceSSL option forces MIME to text/html on redirect #383878
Labels
0.kind: bug
Something is broken
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Nixpkgs version
Describe the bug
the nginx service's forceSSL option seems to force
Content-Type
totext/html
on redirect.Steps to reproduce
services.nginx.virtualHosts.<name>.forceSSL = true;
http://
to trigger a redirect (say for a.txt
file)Content-Type
response headertext/html
(rather than the expectedtext/plain
expected for a.txt
file)Expected behaviour
MIME types left intact
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
"x86_64-linux"
Linux 6.12.2-zen1, NixOS, 24.11 (Vicuna), 24.11.20250102.c1df670
yes
yes
nix-env (Lix, like Nix) 2.91.1 System type: x86_64-linux Additional system types: aarch64-linux, i686-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/kiara/.config/nix/nix.conf:/nix/store/pa0mhac3p1q1fdz7w13dl13k19a7vd7z-stylix-kde-config${XDG_CONFIG_DIRS/nix/nix.conf:+/nix/nix.conf:$XDG_CONFIG_DIRS}/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/bimspgs3cpapsbz7a2vi690916fgrvs5-lix-2.91.1/share
/run/current-system/nixpkgs
Notify maintainers
pinging nginx package's listed maintainers (given the core module seems not to list any):
@fpletz @RaitoBezarius @dasJ @Conni2461 @helsinki-Jo @ulrikstrid
I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
No response
The text was updated successfully, but these errors were encountered: