Skip to content

Commit

Permalink
# add registry public
Browse files Browse the repository at this point in the history
  • Loading branch information
czy21 committed Aug 29, 2024
1 parent 063e543 commit 3345cee
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions server/docker/app/nginx/node/base/conf/conf.d/open.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,27 @@ server {
proxy_http_version 1.1;
proxy_pass https://dsm.czy21-internal.com:5001;
}
}

map $status $docker_auth {
401 'Bearer realm="https://registry.czy21.com:8443.com/v2/token",service="https://registry.czy21.com:8443/v2/token"';
}

server {
http2 on;
listen 80;
listen 443 ssl;
server_name registry.czy21.com;

client_max_body_size 0;

ssl_certificate /etc/nginx/cert/registry.czy21.com.pem;
ssl_certificate_key /etc/nginx/cert/registry.czy21.com.key;

location / {
proxy_pass http://registry.czy21-internal.com;

proxy_hide_header WWW-Authenticate;
add_header WWW-Authenticate $auth1 always;
}
}

0 comments on commit 3345cee

Please sign in to comment.