3
0

Add HTTP_SERVER_ASSETS_PATH option

Fix description for AUTH_ASSETS_PATH
This commit is contained in:
Denis Arh 2022-02-21 13:45:11 +01:00
parent e13e429ca9
commit 7fa5e43d08
4 changed files with 15 additions and 2 deletions

View File

@ -170,6 +170,13 @@
# Default: <no value>
# HTTP_SSL_TERMINATED=<no value>
###############################################################################
# Corteza will directly serve these assets (static files).
# When empty path is set (default value), embedded files are used.
# Type: string
# Default: <no value>
# HTTP_SERVER_ASSETS_PATH=<no value>
###############################################################################
# Enable web console. When running in dev environment, web console is enabled by default.
# Type: bool
@ -565,7 +572,6 @@
# Path to js, css, images and template source files
#
# When corteza starts, if path exists it tries to load template files from it.
# If not it uses statically embedded files.
#
# When empty path is set (default value), embedded files are used.
# Type: string

View File

@ -120,6 +120,13 @@ HTTPServer: schema.#optionsGroup & {
env: "HTTP_SSL_TERMINATED"
}
assets_path: {
description: """
Corteza will directly serve these assets (static files).
When empty path is set (default value), embedded files are used.
"""
}
web_console_enabled: {
type: "bool"
defaultGoExpr: "false"

View File

@ -185,7 +185,6 @@ auth: schema.#optionsGroup & {
Path to js, css, images and template source files
When corteza starts, if path exists it tries to load template files from it.
If not it uses statically embedded files.
When empty path is set (default value), embedded files are used.
"""

View File

@ -43,6 +43,7 @@ type (
WebappBaseDir string `env:"HTTP_WEBAPP_BASE_DIR"`
WebappList string `env:"HTTP_WEBAPP_LIST"`
SslTerminated bool `env:"HTTP_SSL_TERMINATED"`
AssetsPath string `env:"HTTP_SERVER_ASSETS_PATH"`
WebConsoleEnabled bool `env:"HTTP_SERVER_WEB_CONSOLE_ENABLED"`
WebConsoleUsername string `env:"HTTP_SERVER_WEB_CONSOLE_USERNAME"`
WebConsolePassword string `env:"HTTP_SERVER_WEB_CONSOLE_PASSWORD"`