Skip to content

Commit

Permalink
custom_nginx.whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
egeneralov committed Dec 29, 2020
1 parent 35a4d8d commit 169c089
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ custom_nginx:
enable: false
conf:
client_max_body_size: 250m
whitelist: []
# - 192.168.0.0/24
ssl:
provider: selfsigned
base_subj: "/C=NL/ST={{ domain }}/L={{ domain }}/O={{ domain }}/OU={{ domain }}"
Expand Down
3 changes: 3 additions & 0 deletions templates/gitlab-http.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ geo $allowed_ips {
{% for ip in ansible_all_ipv4_addresses %}
{{ ip }}/32 1;
{% endfor %}
{% for subnet in custom_nginx.whitelist %}
{{ subnet }} 1;
{% endfor %}
}

log_format extend_json
Expand Down

0 comments on commit 169c089

Please sign in to comment.