add server/location_acl argument#1491
Conversation
use include directive to include server/location ACL file from nginx_conf_dir/conf.d/ dir to not repeat allow/deny lists for every location server/location block
nginx::resource::location is a typethat may have no external impact to Forge modules. nginx::resource::server is a typethat may have no external impact to Forge modules. This module is declared in 9 of 578 indexed public
|
|
ping |
1 similar comment
|
ping |
root-expert
left a comment
There was a problem hiding this comment.
Thanks for the PR!
Please add some units tests for this change
| Optional[Enum['any', 'all']] $location_satisfy = undef, | ||
| Optional[Array] $location_allow = undef, | ||
| Optional[Array] $location_deny = undef, | ||
| Optional[String] $location_acl = undef, |
There was a problem hiding this comment.
I suppose the name can't be an empty string
| Optional[String] $location_acl = undef, | |
| Optional[String[1]] $location_acl = undef, |
Also maybe the user must be able to overwrite the default path nginx::conf_dir/conf.d ?
| Variant[Array[Stdlib::Absolutepath], Stdlib::Absolutepath] $listen_unix_socket = '/var/run/nginx.sock', | ||
| Optional[String] $listen_unix_socket_options = undef, | ||
| Optional[Enum['any', 'all']] $location_satisfy = undef, | ||
| Optional[String] $server_acl = undef, |
There was a problem hiding this comment.
Same here:
| Optional[String] $server_acl = undef, | |
| Optional[String[1]] $server_acl = undef, |
Pull Request (PR) description
conf.d/name.aclACLs to server/location blocks to not repeatallow/denyrules multiple times.aclfile) withallow/denyrules in specific block (denyrule will be the last)