From d6dbb1759d829fcc5ac08adf738bec299a400f12 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 6 Dec 2020 10:17:49 +0100 Subject: [PATCH] Typo in README --- README.md | 4 ++-- README_fr.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fc83019..f2f849d 100644 --- a/README.md +++ b/README.md @@ -42,12 +42,12 @@ Main configuration of the app take place inside the app itself. ### Access and API By default, access for the [JSON API](https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's) is allowed on following path `/yourdomain.tld/api_/domoticzpath`. -So if you access domoticz via https://mydomainname.tld/domoticz, use the following webpath for the api : `https://mydomainname.tld/api_/domoticz/json.htm?yourapicommand` +So if you access domoticz via https://mydomainname.tld/domoticz, use the following webpath for the api : `/mydomainname.tld/api_/domoticz/json.htm?yourapicommand` By default, only sensor updates and switch toogle are authorized. To authorized a new command, you have (for now) to manually update the nginx config file : ```` sudo nano /etc/nginx/conf.d/yourdomain.tld.d/domoticz.conf -``` +```` Then edit the following block by adding the regex of the command you want to allow: ```` #set the list of authorized json command here in regex format diff --git a/README_fr.md b/README_fr.md index ed33a83..31ebb39 100644 --- a/README_fr.md +++ b/README_fr.md @@ -41,12 +41,12 @@ Main configuration of the app take place inside the app itself. ### Accès et API Par défaut, l'accès aux [API JSON](https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's) est autorisé sur cette URL `/votredomaine.tld/api_/chemindedomoticz`. -Donc, si vous accédez à domoticz par https://votredomaine.tld/domoticz, utilisez le chemin suivant pour l'api:`https://votredomaine.tld/api_/domoticz/json.htm?votrecommandeapi` +Donc, si vous accédez à domoticz par https://votredomaine.tld/domoticz, utilisez le chemin suivant pour l'api: `/votredomaine.tld/api_/domoticz/json.htm?votrecommandeapi` Par défaut, seuls la mise à jour de senseur et les interrupteurs sont autorisés. Pour autoriser une nouvelle commande, vous devez (pour l'instant) manuellement éditer le fichier de configuration nginx : ```` sudo nano /etc/nginx/conf.d/yourdomain.tld.d/domoticz.conf -``` +```` Puis éditer le bloc suivant en y ajoutant le regex de la commmande à autoriser : ```` #set the list of authorized json command here in regex format