aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-02-16 10:34:56 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-02-16 10:40:12 +0100
commitc6c911a50ec61bef1ccd757ef9d8415a511751e0 (patch)
treee138bfa5167ccd1ad7b72f00d9219b36316c2460
parent0dd5d05960797eead443813f44a9685c6bab7ded (diff)
Update documentation of --roothttp option.
By default when roothttp option is not set, no files are served but note that apis are still available. Change-Id: I461b6c94d4d16cf873c0f8fb2543576595ed24c1 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r--src/afb-config.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/afb-config.c b/src/afb-config.c
index de025473..7852f6c4 100644
--- a/src/afb-config.c
+++ b/src/afb-config.c
@@ -117,10 +117,10 @@ static AFB_options cliOptions[] = {
{SET_BACKGROUND, 0, "daemon", "Get all in background mode"},
{SET_TCP_PORT, 1, "port", "HTTP listening TCP port [default 1234]"},
- {SET_ROOT_HTTP, 1, "roothttp", "HTTP Root Directory [default rootdir]"},
+ {SET_ROOT_HTTP, 1, "roothttp", "HTTP Root Directory [default no root http (files not served but apis still available)]"},
{SET_ROOT_BASE, 1, "rootbase", "Angular Base Root URL [default /opa]"},
{SET_ROOT_API, 1, "rootapi", "HTML Root API URL [default /api]"},
- {SET_ALIAS, 1, "alias", "Muliple url map outside of rootdir [eg: --alias=/icons:/usr/share/icons]"},
+ {SET_ALIAS, 1, "alias", "Multiple url map outside of rootdir [eg: --alias=/icons:/usr/share/icons]"},
{SET_APITIMEOUT, 1, "apitimeout", "Binding API timeout in seconds [default 10]"},
{SET_CNTXTIMEOUT, 1, "cntxtimeout", "Client Session Context Timeout [default 900]"},
@@ -240,7 +240,7 @@ static void list_add(struct afb_config_list **head, char *value)
struct afb_config_list *item;
/*
- * search tail
+ * search tail
*/
item = *head;
while (item != NULL) {
@@ -249,7 +249,7 @@ static void list_add(struct afb_config_list **head, char *value)
}
/*
- * alloc the item
+ * alloc the item
*/
item = malloc(sizeof *item);
if (item == NULL) {
@@ -258,7 +258,7 @@ static void list_add(struct afb_config_list **head, char *value)
}
/*
- * init the item
+ * init the item
*/
*head = item;
item->value = value;