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:
parent
07c73d399a
commit
08952ca781
3 changed files with 2 additions and 22 deletions
|
@ -12,6 +12,7 @@
|
||||||
- Cesium wallet webapp could be set as public. It is accessible at `duniter.domain.tld/cesium`.
|
- 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`.
|
- Web interface is accessible at `duniter.domain.tld/webui`.
|
||||||
- The API is accessible at `duniter.domain.tld/`.
|
- 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
|
```bash
|
||||||
sudo yunohost app install https://github.com/duniter/duniter_ynh
|
sudo yunohost app install https://github.com/duniter/duniter_ynh
|
||||||
|
|
|
@ -59,25 +59,6 @@
|
||||||
"example": "10900",
|
"example": "10900",
|
||||||
"default": "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 n’avez pas de compte Duniter, laisser les identifiants par défaut. C’est éditable dans l’interface 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",
|
"name": "admin",
|
||||||
"type": "user",
|
"type": "user",
|
||||||
|
|
|
@ -10,8 +10,6 @@ path="/"
|
||||||
port=$YNH_APP_ARG_PORT
|
port=$YNH_APP_ARG_PORT
|
||||||
sync_node=$YNH_APP_ARG_SYNC_NODE
|
sync_node=$YNH_APP_ARG_SYNC_NODE
|
||||||
sync_port=$YNH_APP_ARG_SYNC_PORT
|
sync_port=$YNH_APP_ARG_SYNC_PORT
|
||||||
salt=$YNH_APP_ARG_SALT
|
|
||||||
password=$YNH_APP_ARG_PASSWORD
|
|
||||||
admin=$YNH_APP_ARG_ADMIN
|
admin=$YNH_APP_ARG_ADMIN
|
||||||
is_cesium_public=$YNH_APP_ARG_IS_CESIUM_PUBLIC
|
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
|
INSTALL_DUNITER_DEBIAN_PACKAGE
|
||||||
|
|
||||||
# Configure Duniter node
|
# 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)
|
# Reset Duniter node's existing data (blockchain, not conf)
|
||||||
sudo $app reset data > /dev/null
|
sudo $app reset data > /dev/null
|
||||||
|
|
Loading…
Add table
Reference in a new issue