mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 08:45:02 +01:00
fix nginx
This commit is contained in:
parent
1d186dd00d
commit
922056b63c
2 changed files with 13 additions and 6 deletions
|
|
@ -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/;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue