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 { server {
listen 80; listen 80;
location /docker-registry { location / {
rewrite /docker-registry(.*) $1 break; return 200 'Hell, World!';
proxy_pass http://registry:5000; add_header Content-Type text/plain;
proxy_redirect off; }
proxy_set_header Host $host; }
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 # rootcertbundle: /root/certs/bundle
http: http:
addr: 0.0.0.0:5000 addr: 0.0.0.0:5000
prefix: /docker-registry
draintimeout: 60s draintimeout: 60s
headers: headers:
X-Content-Type-Options: [nosniff] X-Content-Type-Options: [nosniff]