Compare commits
No commits in common. "b6c26a22858e2c0220e4cebe5233946a9405dd79" and "8fc677a17f39d76bb85df79aafb225f09012ef00" have entirely different histories.
b6c26a2285
...
8fc677a17f
|
@ -15,4 +15,4 @@ RUN chown -R 1000:1000 /app
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["/app/altcha", "run"]
|
||||
CMD ["bin/altcha", "run"]
|
||||
|
|
53
README.md
53
README.md
|
@ -2,40 +2,14 @@
|
|||
|
||||
Serveur de génération de challenges altcha et de validation de la solution
|
||||
|
||||
## Utilisation
|
||||
# Utilisation
|
||||
|
||||
### Depuis le binaire
|
||||
```sh
|
||||
$ ALTCHA_HMAC_KEY="CLÉ HMAC" bin/altcha run
|
||||
Lancer le serveur
|
||||
```
|
||||
altcha run
|
||||
```
|
||||
|
||||
### Depuis l'image docker
|
||||
```sh
|
||||
$ docker run -e ALTCHA_HMAC_KEY="CLÉ HMAC" reg.cadoles.com/cadoles/altcha
|
||||
```
|
||||
|
||||
### Depuis les sources
|
||||
```sh
|
||||
$ ALTCHA_HMAC_KEY="CLÉ HMAC" go run ./cmd/altcha run
|
||||
```
|
||||
|
||||
### Autres commandes
|
||||
Générer un challenge
|
||||
```sh
|
||||
$ ALTCHA_HMAC_KEY="CLÉ HMAC" bin/altcha generate
|
||||
```
|
||||
|
||||
Résoudre un challenge
|
||||
```sh
|
||||
$ ALTCHA_HMAC_KEY="CLÉ HMAC" bin/atlcha solve [CHALLENGE] [SALT]
|
||||
```
|
||||
|
||||
Vérifier une solution
|
||||
```sh
|
||||
$ ALTCHA_HMAC_KEY="CLÉ HMAC" bin/altcha verify [CHALLENGE] [SALT] [SIGNATURE] [SOLUTION]
|
||||
```
|
||||
|
||||
## Variables d'environement
|
||||
# Variables d'environement
|
||||
| Nom | Description | Valeur par défaut | Requis |
|
||||
|---------------------|------------------------------------------------------------------------------|--------------------------|--------|
|
||||
| ALTCHA_PORT | Port d'écoute du serveur | 3333 | Non |
|
||||
|
@ -44,19 +18,4 @@ $ ALTCHA_HMAC_KEY="CLÉ HMAC" bin/altcha verify [CHALLENGE] [SALT] [SIGNATURE] [
|
|||
| ALTCHA_ALGORITHM | Algorithme de hashage (valeurs possibles: SHA-1, SHA-256, SHA-512) | SHA-256 | Non |
|
||||
| ALTCHA_SALT | Forcer le salt du challenge | *Généré automatiquement* | Non |
|
||||
| ALTCHA_EXPIRE | Temps avant expiration du challenge (en secondes) | 600 | Non |
|
||||
| ALTCHA_CHECK_EXPIRE | Vérifier si le challenge à expiré | 1 | Non |
|
||||
|
||||
## Construire le binaire
|
||||
```sh
|
||||
$ make build
|
||||
```
|
||||
|
||||
## Construire l'image docker
|
||||
```sh
|
||||
$ make build-image
|
||||
```
|
||||
|
||||
## Publier l'image docker
|
||||
```sh
|
||||
$ make release-image
|
||||
```
|
||||
| ALTCHA_CHECK_EXPIRE | Vérifier si le challenge à expiré | 1 | Non |
|
Loading…
Reference in New Issue