From 9cd06c95eba491bce1a60f7d1b2fef320aec1124 Mon Sep 17 00:00:00 2001
From: Quentin Dufour Configurer votre logiciel : Créez un fichier nommé Ensuite vous pouvez utiliser awscli : Vous pouvez configurer Minio CLI avec cette commande : Et ensuite pour utiliser Minio CLI avec : Dans votre fichier Assurez-vous d'avoir un fichier dans lequel les variables Configurer votre logiciel : Un exemple avec SCP :
-
-
-
-
-
- Identifiant de clé
- {{ .S3KeyInfo.AccessKeyId }}
-
-
- Clé secrète
- Cliquer pour afficher la clé secrète
-
-
- Région
- garage
-
-
- Endpoint URL
- https://garage.deuxfleurs.fr
-
-
- Type d'URL
- DNS et chemin (préférer chemin)
-
-
-
- Signature
- Version 4
-
-
-
- ~/.awsrc
:
-export AWS_ACCESS_KEY_ID={{ .S3KeyInfo.AccessKeyId }}
-export AWS_SECRET_ACCESS_KEY={{ .S3KeyInfo.SecretAccessKey }}
-export AWS_DEFAULT_REGION='garage'
-
-function aws { command aws --endpoint-url https://garage.deuxfleurs.fr $@ ; }
-aws --version
-
-
-source ~/.awsrc
-aws s3 ls
-aws s3 ls s3://my-bucket
-aws s3 cp /tmp/a.txt s3://my-bucket
-...
-
-
-
-
-
-mc alias set \
- garage \
- https://garage.deuxfleurs.fr \
- {{ .S3KeyInfo.AccessKeyId }} \
- {{ .S3KeyInfo.SecretAccessKey }} \
- --api S3v4
-
-
-mc ls garage/
-mc cp /tmp/a.txt garage/my-bucket/a.txt
-...
-
-
-
-
-
-
-
- config.toml
, rajoutez :
-[[deployment.targets]]
- URL = "s3://bucket?endpoint=garage.deuxfleurs.fr&s3ForcePathStyle=true®ion=garage"
-
- AWS_ACCESS_KEY_ID
et AWS_SECRET_ACCESS_KEY
sont définies,
- ici on suppose que vous avez suivi les instructions de l'outil awscli (ci-dessus) et que vous avez un fichier ~/.awsrc
qui défini ces variables.
- Ensuite :
-source ~/.awsrc
-hugo deploy
-
-
-
-
-
-
-
-
-
- Nom d'utilisateur-ice
- {{ .Login.Info.Username }}
-
-
- Mot de passe
- (votre mot de passe guichet)
-
-
- Hôte
- sftp://bagage.deuxfleurs.fr
-
-
-
- Port
- 2222
-
-
-
-
-scp -oHostKeyAlgorithms=+ssh-rsa -P2222 -r ./public {{ .Login.Info.Username }}@bagage.deuxfleurs.fr:mon_bucket/
-
-
-
-
-
Identifiant de clé | +{{ .View.AccessKeyId }} | +
---|---|
Clé secrète | ++ Cliquer pour afficher la clé secrète + + | +
Région | +garage | +
Endpoint URL | +https://garage.deuxfleurs.fr | +
Type d'URL | +DNS et chemin (préférer chemin) | +
Signature | +Version 4 | +