Registry updated to v3 and from nginx to caddy
This commit is contained in:
1 parent
e429ce661e
commit
dc2e11ca69
10 files changed
+83
-72
No files matched your search
@@ -0,0 +1,18 @@
|
||||
version: 0.1
|
||||
log:
|
||||
level: info
|
||||
fields:
|
||||
service: registry
|
||||
storage:
|
||||
filesystem:
|
||||
rootdirectory: /data
|
||||
auth:
|
||||
htpasswd:
|
||||
realm: Registry
|
||||
path: /auth/registry.passwd
|
||||
http:
|
||||
addr: :5000
|
||||
secret: my-registry-secret
|
||||
debug:
|
||||
prometheus:
|
||||
enabled: true
|
||||
@@ -1,27 +0,0 @@
|
||||
server {
|
||||
|
||||
listen 80;
|
||||
server_name {{ http_host }};
|
||||
|
||||
# set max upload size
|
||||
client_max_body_size 10G;
|
||||
|
||||
location / {
|
||||
# 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
|
||||
if ($http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
|
||||
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive" always;
|
||||
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
|
||||
proxy_read_timeout 900;
|
||||
proxy_pass http://localhost:{{ host_port }};
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user