Skip to content
Snippets Groups Projects
Commit c940cbe2 authored by Nathan Rodet's avatar Nathan Rodet
Browse files

Change to hash creation with argon

parent acee498f
No related branches found
No related tags found
No related merge requests found
......@@ -37,9 +37,11 @@ After deployment, each resource can be accessed though HTTPS depending on their
- https://code-1.rust-1.daag.alpha.grandlyon.com/
- https://rust-1.daag.alpha.grandlyon.com/
**User :**
- Username: abc
- Password: <Gitlab Stored>
### Credentials
**Desktop username : abc**
**Atrium username : admin**
**Password : <Gitlab Stored>**
## How to add new resources
......
......@@ -4,7 +4,12 @@
# Install Atrium
#
export USER_PASSWORD_HASH=$(echo "$(scw-userdata user_password)" | argon2 "$(echo $RANDOM | md5sum | head -c 12)" -i -l 32 -e)
#
# Example : Generate user_password Argon2 encoded hash for Atrium
# echo $(scw-userdata user_password) | argon2 $(echo $RANDOM | md5sum | head -c 12) -id -l 32 -e
#
export USER_PASSWORD_HASH=$(echo "$(scw-userdata user_password)" | argon2 "$(echo $RANDOM | md5sum | head -c 12)" -id -l 32 -e)
mkdir -p /root/atrium/data && mkdir -p /root/atrium/letsencrypt_cache
curl https://forge.grandlyon.com/systemes-dinformation/alpha/projects/labo-rust/-/raw/develop/instance-scripts/config-files/atrium.yaml -o root/atrium/atrium.yaml
......@@ -28,8 +33,4 @@ docker run -d --name atrium \
-v /root/atrium/letsencrypt_cache:/app/letsencrypt_cache \
-v /root/atrium/data:/app/data nicolaspernoud/atrium:latest
#
# Example : Generate user_password Argon2 encoded hash for Atrium
#
# echo $(scw-userdata user_password) | argon2 $(echo $RANDOM | md5sum | head -c 12) -i -l 32 -e
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment