droonga-http-server-configureは、そのコンピュータ自身をdroonga-http-serverのノードとして設定します。
このコマンドの最も代表的な用途は、コンピュータをクリーンな状態のHTTPサーバー用ノードとしてリセットする事です。 このコマンドはコンピュータをどのように設定するかを対話的に尋ねてきます:
# droonga-http-server-configure 
Do you want the configuration file "droonga-http-server.yaml" to be regenerated? (y/N): y
IP address to accept requests from clients (0.0.0.0 means "any IP address") [0.0.0.0]: 
port [10041]: 
hostname of this node [nodeX]: 
hostnames of droonga-engine nodes (comma, vertical bar, or white-space separated) [nodeX]: 
port number of the droonga-engine node [10031]: 
tag of the droonga-engine node [droonga]: 
default dataset [Default]: 
timeout for unresponsive connections (in seconds) [3]: 
path to the access log file [droonga-http-server.access.log]: 
path to the system log file [droonga-http-server.system.log]: 
log level for the system log (silly,debug,verbose,info,warn,error) [warn]: 
maximum size of the response cache [100]: 
time to live of cached responses, in seconds [60]: 
enable "trust proxy" configuration (y/N): 
path to the document root [/usr/local/lib/node_modules/droonga-http-server/public/groonga-admin]: 
environment [production]: 
プランが既に固まっているのであれば、コマンドラインオプションを使ってサイレントに実行する事もできます:
# droonga-http-server-configure \
    --no-prompt \
    --reset-config \
    --host 0.0.0.0 \
    --port 10041 \
    --droonga-engine-host-names node0,node1,node2 \
    --droonga-engine-port 10031 \
    --tag droonga \
    --system-log-level info
droonga-http-serverサービスがサービスとして正しく設定されている場合、このコマンドはインストール済みのサービスを設定するためだけに動作し、(サービスの利用においては使われない)いくつかのオプションは無視されます。
--no-prompt--reset-configdroonga-http-server.yamlを新しい物に置き換えます。
このオプションが指定された場合、droonga-http-server.yamlは確認無しに上書きされます。
オプションが指定されず、既存のdroonga-http-server.yamlが存在する場合、上書きして良いかどうかが尋ねられます。--host=HOST0.0.0.0(そのコンピュータに割り当てられた全てのIPアドレスとホスト名で接続を受け付ける)です。--port=PORT10041です。--receiver-host-name=NAME--droonga-engine-host-names=NAME1,NAME2,...--droonga-engine-port=PORT10031です。--tag=TAGdroongaです。--default-dataset=NAMEDefaultです。--default-timeout=SECONDS3です。--access-log-file=PATH-を指定した場合、ログは標準出力に出力されます。
既定値は-です。--system-log-file=PATH-を指定した場合、ログは標準出力に出力されます。
既定値は-です。--system-log-level=LEVELsilly/trace、debug、verbose、info、warn、errorのうちのいずれかです。
既定値はwarnです。--cache-size=N/d/selectなどのいくつかのエンドポイントについてのみ反映されます。
既定値は100です。--cache-ttl-in-seconds=SECONDS/d/selectなどのいくつかのエンドポイントについてのみ反映されます。
既定値は60です。--enable-trust-proxy, --disable-trust-proxydroonga-http-serverのサービスをリバースプロキシの背後で動作させる場合、この設定を有効化する必要があります。
既定値は--disable-trust-proxyです。--document-root=PATH(droonga-http-serverのインストール先ディレクトリ)/public/groonga-adminです。--plugins=PLUGIN1,PLUGIN2,..../api/rest: searchコマンドのためのREST形式のエンドポイントを提供します。./api/groonga: Groonga互換のエンドポイントを提供します。./api/droonga: Droongaネイティブコマンド用の一般的なエンドポイントを提供します。既定の状態では、全てのプラグインが有効化されます。
--daemonservice droonga-http-server startコマンドで開始されるサービスについては常にデーモンとして実行されます。--pid-file=PATHservice droonga-http-server startコマンドで開始されるサービスについては、プロセスIDは常にプラットフォームごとの適切な位置に出力されます。--environment=ENVIRONMENTdevelopmentproduction (既定値)testing-h, --helpこのコマンドは、npmのパッケージdroonga-http-serverの一部としてインストールされます。
# npm install -g droonga-http-server