Skip to content
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/nginx: forceSSL option forces MIME to text/html on redirect #383878

Open
3 tasks done
KiaraGrouwstra opened this issue Feb 21, 2025 · 0 comments
Open
3 tasks done

nixos/nginx: forceSSL option forces MIME to text/html on redirect #383878

KiaraGrouwstra opened this issue Feb 21, 2025 · 0 comments
Labels
0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS

Comments

@KiaraGrouwstra
Copy link
Contributor

Nixpkgs version

  • Unstable (25.05)

Describe the bug

the nginx service's forceSSL option seems to force Content-Type to text/html on redirect.

Steps to reproduce

  1. use nginx with services.nginx.virtualHosts.<name>.forceSSL = true;
  2. make an HTTP request to it over http:// to trigger a redirect (say for a .txt file)
  3. find Content-Type response header text/html (rather than the expected text/plain expected for a .txt file)

Expected behaviour

MIME types left intact

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.12.2-zen1, NixOS, 24.11 (Vicuna), 24.11.20250102.c1df670
  • multi-user?: yes
  • sandbox: yes
  • version: 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
  • nixpkgs: /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

@KiaraGrouwstra KiaraGrouwstra added 0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Projects
None yet
Development

No branches or pull requests

1 participant