Skip to content

Conversation

rndmh3ro
Copy link
Member

This PR changes the way the nginx-configuration is read.

Before, the indivual config-files got read.
Now the parsed nginx-configuration is read.

This way it does not matter where in the configuration an option is set.

As a next step I think we could (in a separate PR) remove the checks for nginx_hardening = File.join(nginx_confd, '90.hardening.conf') and more generally check if the files in /etc/nginx/conf.d are secured against access. What do you think?

CC @chris-rock @atomic111

Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

Great improvement @rndmh3ro

@chris-rock chris-rock requested a review from atomic111 August 16, 2018 08:02
Copy link
Member

@atomic111 atomic111 left a comment

Choose a reason for hiding this comment

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

@rndmh3ro cool solution

@atomic111 atomic111 merged commit 5e0151b into dev-sec:master Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants