Readme Harbor
This commit is contained in:
parent
10012be920
commit
57f4b8df9f
@ -26,12 +26,79 @@ Saisir la commande pour vous rendre dans le dossier
|
||||
cd Repository\Harbor
|
||||
```
|
||||
|
||||
Nous éditons le fichier de configuration
|
||||
Modifier le fichier Habor.yml
|
||||
```bash
|
||||
nano .env
|
||||
nano harbor.yml
|
||||
```
|
||||
|
||||
```bash
|
||||
# Configuration file of Harbor
|
||||
|
||||
# The IP address or hostname to access admin UI and registry service.
|
||||
# DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients.
|
||||
hostname: registry.traefik.me
|
||||
|
||||
# http related config
|
||||
http:
|
||||
# port for http, default is 80. If https enabled, this port will redirect to https port
|
||||
port: 8083
|
||||
|
||||
# https related config
|
||||
##https:
|
||||
# https port for harbor, default is 443
|
||||
## port: 443
|
||||
# The path of cert and key files for nginx
|
||||
## certificate: /your/certificate/path
|
||||
## private_key: /your/private/key/path
|
||||
# enable strong ssl ciphers (default: false)
|
||||
# strong_ssl_ciphers: false
|
||||
|
||||
# # Harbor will set ipv4 enabled only by default if this block is not configured
|
||||
# # Otherwise, please uncomment this block to configure your own ip_family stacks
|
||||
# ip_family:
|
||||
# # ipv6Enabled set to true if ipv6 is enabled in docker network, currently it affected the nginx related component
|
||||
# ipv6:
|
||||
# enabled: false
|
||||
# # ipv4Enabled set to true by default, currently it affected the nginx related component
|
||||
# ipv4:
|
||||
# enabled: true
|
||||
|
||||
# # Uncomment following will enable tls communication between all harbor components
|
||||
# internal_tls:
|
||||
# # set enabled to true means internal tls is enabled
|
||||
# enabled: true
|
||||
# # put your cert and key files on dir
|
||||
# dir: /etc/harbor/tls/internal
|
||||
|
||||
|
||||
# Uncomment external_url if you want to enable external proxy
|
||||
# And when it enabled the hostname will no longer used
|
||||
external_url: https://registry.traefik.me
|
||||
```
|
||||
|
||||
Nous éditons le fichier de configuration
|
||||
```bash
|
||||
./prepare --with-trivy
|
||||
```
|
||||
|
||||
Stop Harbor
|
||||
```bash
|
||||
docker compose stop && docker compose rm -f
|
||||
```
|
||||
|
||||
Editer le fichier de configuration Nginx
|
||||
```bash
|
||||
nano common/config/nginx/nginx.conf
|
||||
```
|
||||
|
||||
Commentaire les lignes
|
||||
```bash
|
||||
proxy_set_header X-Forwarded-Proto $x_forwarded_proto;
|
||||
```
|
||||
|
||||
Relancer Harbor
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
Nous modifions les variables dont nous avons besoin.
|
||||
|
Loading…
x
Reference in New Issue
Block a user