mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +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 {
|
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/;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue