mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-27 10:01:27 +01:00
Update docker building for UI (#16692)
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
e6e748a3db
commit
02ea4be0de
@ -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`
|
||||
|
||||
`location ~ /(api|c)/* {
|
||||
proxy_pass ${an available back-end server addr};
|
||||
}`
|
||||
`
|
||||
location ~ ^/(api|c|chartrepo)/ {
|
||||
proxy_pass ${an available back-end server addr};
|
||||
}
|
||||
`
|
||||
|
||||
3. Build harbor-ui image
|
||||
|
||||
|
@ -34,8 +34,9 @@ http {
|
||||
add_header Cache-Control "no-store, no-cache, must-revalidate";
|
||||
}
|
||||
|
||||
location ~ /(api|c|chartrepo)/* {
|
||||
proxy_pass https://example.com;
|
||||
|
||||
location ~ ^/(api|c|chartrepo)/ {
|
||||
proxy_pass https://example.com;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user