diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 5aacb9f..6709d63 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -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/; } } diff --git a/registry/config.yml b/registry/config.yml index 2446209..b9e957d 100644 --- a/registry/config.yml +++ b/registry/config.yml @@ -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]