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/gitweb: add some (crucial) options #75602

Merged
merged 1 commit into from Jan 16, 2020

Conversation

ksixty
Copy link
Contributor

@ksixty ksixty commented Dec 13, 2019

Motivation for this change

This replaces some hardcoded values in nginx's VirtualHosts's configuration with customizable options. Previous values are kept as default, so nothing should break for existing users.

Call it a minimal refactoring.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @gnidorah

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine here, thanks! :)

@flokli
Copy link
Contributor

flokli commented Dec 17, 2019

LGTM. Could you squash the 3 commits together into 1?

Also, it'd be nice if you could add a NixOS test, so we could ensure things keep working ;-)

@aanderse
Copy link
Member

ping @vanyaklimenko

This replaces some hardcoded values in nginx's VirtualHosts's
configuration with customizable options. Previous values are kept as
default, so nothing should break for existing users.

Co-Authored-By: Florian Klink <flokli@flokli.de>
@ksixty
Copy link
Contributor Author

ksixty commented Jan 14, 2020

@flokli @aanderse

Sorry for the long wait. I've squashed the commits.

Not sure if the tests are really needed as the package seems pretty straightforward to me, and, alas, at the moment I just do not have enough time to spare on this. Let's leave it as it is for now?

@aanderse
Copy link
Member

@vanyaklimenko NixOS tests are always nice for modules as at bare minimum it gives committers who have no domain specific knowledge of a module a better indication they aren't breaking anything by hitting 'merge'.

That being said, this module doesn't currently have a test and as your PR mentions these are crucial options. If anyone has a chance to come back to this and create a NixOS test full bonus points will be awarded 🎉

Merging based on the code seeming reasonable to myself and @flokli as well as testing provided by @gnidorah. Thanks for your contribution!

@aanderse aanderse merged commit fc1bee5 into NixOS:master Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants