droonga-http-server-configure
configures the computer itself as a droonga-http-server
node.
The most major usecase of this command is to reset a computer as a clean HTTP server node. This command asks you interactively how to configure the computer, like:
# 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]:
This command can work silently with command line options when you have complete plan, like:
# 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
If the droonga-http-server
service is correctly registered as a service, this command works only to configure the installed service and some options (not used for the service) are ignored.
--no-prompt
--reset-config
droonga-http-server.yaml
with the new one.
If this option is given, droonga-http-server.yaml
is overwritten without confirmation.
Otherwise a confirmation prompt is shown, if there is existing droonga-http-server.yaml
.--host=HOST
0.0.0.0
(accepts all connections for host name and IP address of this computer) by default.--port=PORT
10041
by default.--receiver-host-name=NAME
--droonga-engine-host-names=NAME1,NAME2,...
--droonga-engine-port=PORT
10031
by default.--tag=TAG
droonga
by default.--default-dataset=NAME
Default
by default.--default-timeout=SECONDS
3
by default.--access-log-file=PATH
-
means the standard output.
-
by default.--system-log-file=PATH
-
means the standard output.
-
by default.--system-log-level=LEVEL
silly
/trace
, debug
, verbose
, info
, warn
and error
.
warn
by default.--cache-size=N
/d/select
.
100
by default.--cache-ttl-in-seconds=SECONDS
/d/select
.
60
by default.--enable-trust-proxy
, --disable-trust-proxy
droonga-http-server
service behind a reverse proxy.
--disable-trust-proxy
is by default.--document-root=PATH
(droonga-http-server's installation directory)/public/groonga-admin
by default.--plugins=PLUGIN1,PLUGIN2,...
./api/rest
: Provides REST endpoints for the search
command../api/groonga
: Provides Groonga compatible endpoints../api/droonga
: Provides generic endpoint for Droonga’s native commands.All plugins are activated by default.
--daemon
droonga-http-server
service always started as a daemon by the command line service droonga-http-server start
, even if this option is given.--pid-file=PATH
droonga-http-server
service always stored at the platform specific location by the command line service droonga-http-server start
, even if this option is given.--environment=ENVIRONMENT
development
production
(default)testing
-h
, --help
This is installed as a part of an npm package droonga-http-server
.
# npm install -g droonga-http-server