1
0
mirror of https://github.com/rhasspy/rhasspy.git synced 2022-02-12 01:59:45 +03:00

Add --http-root option to rhasspy-voltron to change web server url prefix

This commit is contained in:
Michael Hansen
2020-09-27 10:49:46 -04:00
parent 69c4c582d7
commit c20daaa7c4
3 changed files with 8 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ DEFINE_string 'certfile' '' 'SSL certificate file'
DEFINE_string 'keyfile' '' 'SSL private key file (optional)'
DEFINE_string 'http-host' '' 'Change host for web server (default: localhost)'
DEFINE_string 'http-port' '' 'Change port for web server (default: 12101)'
DEFINE_string 'http-root' '' 'Change URL root for web server (default: /)'
DEFINE_string 'local-mqtt-port' '' 'Change internal MQTT port (default: 12183)'
DEFINE_boolean 'web-server' true 'Run Rhasspy web server'
DEFINE_boolean 'generate-conf' true 'Generate supervisord conf from profile'
@@ -81,6 +82,7 @@ fi
http_host="${FLAGS_http_host}"
http_port="${FLAGS_http_port}"
http_root="${FLAGS_http_root}"
if [[ -n "${http_host}" ]]; then
extra_web_args+=('--host' "${http_host}")
@@ -90,6 +92,10 @@ if [[ -n "${http_port}" ]]; then
extra_web_args+=('--port' "${http_port}")
fi
if [[ -n "${http_root}" ]]; then
extra_web_args+=('--url-root' "${http_root}")
fi
# Extra arguments to pass to rhasspy-supervisor
extra_supervisor_args=()