1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

[mod] close #30: Do not ask for credentials at install as it's insecure:

- remove from manifest and install script corresponding code.
- readme: add explaination how to configure the key on his node.
This commit is contained in:
Moul 2017-02-21 14:41:51 +01:00
parent 07c73d399a
commit 08952ca781
3 changed files with 2 additions and 22 deletions

View file

@ -12,6 +12,7 @@
- Cesium wallet webapp could be set as public. It is accessible at `duniter.domain.tld/cesium`.
- Web interface is accessible at `duniter.domain.tld/webui`.
- The API is accessible at `duniter.domain.tld/`.
- After installation, to compute blocks you will have to configure your identity on the node with [CLI option --keyprompt](https://github.com/duniter/duniter-keypair#cli-options) or from webadmin using HTTPS.
```bash
sudo yunohost app install https://github.com/duniter/duniter_ynh

View file

@ -59,25 +59,6 @@
"example": "10900",
"default": "10900"
},
{
"name": "salt",
"ask": {
"en": "Salt of your account. Let credentials as default if you don't have a Duniter account. It is editable on the web admin.",
"fr": "Salt de votre compte. Si vous navez pas de compte Duniter, laisser les identifiants par défaut. Cest éditable dans linterface web."
},
"example": "joe@example.tld",
"default": "joe@example.tld"
},
{
"name": "password",
"type": "password",
"ask": {
"en": "Password of your account",
"fr": "Mot de passe de votre compte"
},
"example": "supersecretpassword",
"default": "supersecretpassword"
},
{
"name": "admin",
"type": "user",

View file

@ -10,8 +10,6 @@ path="/"
port=$YNH_APP_ARG_PORT
sync_node=$YNH_APP_ARG_SYNC_NODE
sync_port=$YNH_APP_ARG_SYNC_PORT
salt=$YNH_APP_ARG_SALT
password=$YNH_APP_ARG_PASSWORD
admin=$YNH_APP_ARG_ADMIN
is_cesium_public=$YNH_APP_ARG_IS_CESIUM_PUBLIC
@ -60,7 +58,7 @@ sudo yunohost firewall allow TCP $port > /dev/null 2>&1
INSTALL_DUNITER_DEBIAN_PACKAGE
# Configure Duniter node
sudo $app config --ipv4 127.0.0.1 --port $port --remoteh $domain --remotep 443 --noupnp --salt $salt --passwd $password
sudo $app config --ipv4 127.0.0.1 --port $port --remoteh $domain --remotep 443 --noupnp
# Reset Duniter node's existing data (blockchain, not conf)
sudo $app reset data > /dev/null