Update docker building for UI (#16692)

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
Shijun Sun 2022-04-18 11:07:00 +08:00 committed by GitHub
parent e6e748a3db
commit 02ea4be0de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -8,9 +8,11 @@ Steps to deploy Harbor UI in a nginx container, it can be used for testing
`cp nginx.conf.example nginx.conf` `cp nginx.conf.example nginx.conf`
`location ~ /(api|c)/* { `
location ~ ^/(api|c|chartrepo)/ {
proxy_pass ${an available back-end server addr}; proxy_pass ${an available back-end server addr};
}` }
`
3. Build harbor-ui image 3. Build harbor-ui image

View File

@ -34,7 +34,8 @@ http {
add_header Cache-Control "no-store, no-cache, must-revalidate"; add_header Cache-Control "no-store, no-cache, must-revalidate";
} }
location ~ /(api|c|chartrepo)/* {
location ~ ^/(api|c|chartrepo)/ {
proxy_pass https://example.com; proxy_pass https://example.com;
} }
} }