Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 4a6916aba3ec
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 178ec8974ff7
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 5, 2021

  1. nixos/nginx: allow overriding fastcgi params

    By default in Nginx, if you want to override a single fastcgi_param,
    you have to override all of them.  This is less of a big deal if
    you're editing the Nginx configuration directly, but when you're
    generating the Nginx configuration with Nix it can be very annoying to
    bloat your configuration repeating the default values of FastCGI
    parameters every time.
    
    This patch adds a fastcgiParams option to Nginx locations.  If any
    parameters are set through this, all the default values will be
    included as well, so only the ones that are changing need to be
    supplied.  There's no way to use fastcgiParams to actually override
    all parameters if that's what you want, but I think that's a niche use
    case and it's still possible using extraConfig, which up until now was
    the only option
    
    Nginx allows the fastcgi_param directive in http and server scopes as
    well as location, but here I only support location.  It would be
    possible to support the others, but I don't think it's worth it.  It
    would be a possible future enhancement if somebody has a need for it.
    alyssais committed Jan 5, 2021
    Copy the full SHA
    178ec89 View commit details
    Browse the repository at this point in the history