.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
ac444b9b3d
commit
77f62d5aa3
|
@ -79,6 +79,7 @@ server {
|
||||||
server_name ${SERVER_NAME};
|
server_name ${SERVER_NAME};
|
||||||
|
|
||||||
location ~ /(.*) {
|
location ~ /(.*) {
|
||||||
|
resolver 127.0.0.11 ipv6=off valid=30s; ## internal docker dns
|
||||||
sub_filter '</head>' '<!-- Matomo -->
|
sub_filter '</head>' '<!-- Matomo -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var _paq = window._paq || [];
|
var _paq = window._paq || [];
|
||||||
|
@ -126,7 +127,8 @@ server {
|
||||||
# required to avoid HTTP 411: see Issue #1486 (https://github.com/moby/moby/issues/1486)
|
# required to avoid HTTP 411: see Issue #1486 (https://github.com/moby/moby/issues/1486)
|
||||||
chunked_transfer_encoding on;
|
chunked_transfer_encoding on;
|
||||||
server_name ${SERVER_NAME};
|
server_name ${SERVER_NAME};
|
||||||
location /v2/ {
|
location ~ /v2/(.*) {
|
||||||
|
resolver 127.0.0.11 ipv6=off valid=30s; ## internal docker dns
|
||||||
# Do not allow connections from docker 1.5 and earlier
|
# Do not allow connections from docker 1.5 and earlier
|
||||||
# docker pre-1.6.0 did not properly set the user agent on ping, catch "Go *" user agents
|
# docker pre-1.6.0 did not properly set the user agent on ping, catch "Go *" user agents
|
||||||
if (${DOLLAR}http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) {
|
if (${DOLLAR}http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) {
|
||||||
|
@ -138,9 +140,8 @@ server {
|
||||||
proxy_set_header X-Forwarded-For ${DOLLAR}proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For ${DOLLAR}proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto ${DOLLAR}scheme;
|
proxy_set_header X-Forwarded-Proto ${DOLLAR}scheme;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
# i could not get a variable to work..
|
|
||||||
set ${DOLLAR}upstream ${REGISTRY_PROXY_PASS}/v2/${DOLLAR}1${DOLLAR}is_args${DOLLAR}args;
|
set ${DOLLAR}upstream ${REGISTRY_PROXY_PASS}/v2/${DOLLAR}1${DOLLAR}is_args${DOLLAR}args;
|
||||||
proxy_pass ${REGISTRY_PROXY_PASS}; ${DOLLAR}upstream;
|
proxy_pass ${DOLLAR}upstream;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue