fix nginx

This commit is contained in:
nora 2022-08-30 21:07:26 +02:00
parent 1d186dd00d
commit 922056b63c
2 changed files with 13 additions and 6 deletions

View file

@ -6,11 +6,19 @@ http {
server {
listen 80;
location /docker-registry {
rewrite /docker-registry(.*) $1 break;
proxy_pass http://registry:5000;
proxy_redirect off;
proxy_set_header Host $host;
location / {
return 200 'Hell, World!';
add_header Content-Type text/plain;
}
}
server {
listen 80;
server_name registry.nilstrieb.dev;
location / {
proxy_pass http://registry:5000/;
}
}

View file

@ -20,7 +20,6 @@ storage:
# rootcertbundle: /root/certs/bundle
http:
addr: 0.0.0.0:5000
prefix: /docker-registry
draintimeout: 60s
headers:
X-Content-Type-Options: [nosniff]