Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
egeneralov committed Dec 23, 2019
1 parent 92f49a1 commit 0852799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/gitlab-http.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ server {
}

if ($remote_addr ~ "{{ ansible_all_ipv4_addresses | join('|') }}|{{ ansible_all_ipv6_addresses | join('|') }}127.0.0.1") { set $fail 0; }
if ($http_user_agent ~ "docker|git/.*|gitlab-runner.*") { set $fail 0; }
if ($http_user_agent ~ "docker|git") { set $fail 0; }
if ($http_host = "{{ registry_host }}") { set $fail 0; }
if ($fail = 1) { return 403; }

Expand Down

0 comments on commit 0852799

Please sign in to comment.