Skip to content

Commit

Permalink
Add HTTP_SERVER_ASSETS_PATH option
Browse files Browse the repository at this point in the history
Fix description for AUTH_ASSETS_PATH
  • Loading branch information
darh committed Feb 21, 2022
1 parent e13e429 commit 7fa5e43
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .env.example
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions app/options/HTTPServer.cue
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion app/options/auth.cue
Expand Up @@ -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.
"""
Expand Down
1 change: 1 addition & 0 deletions pkg/options/options.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7fa5e43

Please sign in to comment.