From 922056b63c2b1fadc4f8eb186bbb0c343a7d25ad Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Tue, 30 Aug 2022 21:07:26 +0200 Subject: [PATCH] fix nginx --- nginx/nginx.conf | 18 +++++++++++++----- registry/config.yml | 1 - 2 files changed, 13 insertions(+), 6 deletions(-) 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]