snapshot of https://github.com/cortezaproject/corteza.git (2024.9.x, 2026-09-18; blobs > 131072B omitted)
Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
This commit is contained in:
158
server/app/options/http_server.cue
Normal file
158
server/app/options/http_server.cue
Normal file
@@ -0,0 +1,158 @@
|
||||
package options
|
||||
|
||||
import (
|
||||
"github.com/cortezaproject/corteza/server/codegen/schema"
|
||||
)
|
||||
|
||||
HTTPServer: schema.#optionsGroup & {
|
||||
handle: "http-server"
|
||||
title: "HTTP Server"
|
||||
|
||||
imports: [
|
||||
"\"github.com/cortezaproject/corteza/server/pkg/rand\"",
|
||||
]
|
||||
|
||||
options: {
|
||||
domain: {
|
||||
defaultValue: "localhost"
|
||||
description: "Domain for the HTTP server."
|
||||
env: "DOMAIN"
|
||||
}
|
||||
domainWebapp: {
|
||||
defaultValue: "localhost"
|
||||
description: "Domain for the HTTP webapp."
|
||||
env: "DOMAIN_WEBAPP"
|
||||
}
|
||||
addr: {
|
||||
defaultValue: ":80"
|
||||
description: "IP and port for the HTTP server."
|
||||
env: "HTTP_ADDR"
|
||||
}
|
||||
logRequest: {
|
||||
type: "bool"
|
||||
description: "Log HTTP requests."
|
||||
env: "HTTP_LOG_REQUEST"
|
||||
}
|
||||
logResponse: {
|
||||
type: "bool"
|
||||
description: "Log HTTP responses."
|
||||
env: "HTTP_LOG_RESPONSE"
|
||||
}
|
||||
tracing: {
|
||||
type: "bool"
|
||||
env: "HTTP_ERROR_TRACING"
|
||||
}
|
||||
enableHealthcheckRoute: {
|
||||
type: "bool"
|
||||
defaultGoExpr: "true"
|
||||
env: "HTTP_ENABLE_HEALTHCHECK_ROUTE"
|
||||
}
|
||||
enableVersionRoute: {
|
||||
type: "bool"
|
||||
defaultGoExpr: "true"
|
||||
description: "Enable `/version` route."
|
||||
env: "HTTP_ENABLE_VERSION_ROUTE"
|
||||
}
|
||||
enableDebugRoute: {
|
||||
type: "bool"
|
||||
description: "Enable `/debug` route."
|
||||
env: "HTTP_ENABLE_DEBUG_ROUTE"
|
||||
}
|
||||
enableMetrics: {
|
||||
type: "bool"
|
||||
description: "Enable (prometheus) metrics."
|
||||
env: "HTTP_METRICS"
|
||||
}
|
||||
metricsServiceLabel: {
|
||||
defaultValue: "corteza"
|
||||
description: "Name for metrics endpoint."
|
||||
env: "HTTP_METRICS_NAME"
|
||||
}
|
||||
metricsUsername: {
|
||||
defaultValue: "metrics"
|
||||
description: "Username for the metrics endpoint."
|
||||
env: "HTTP_METRICS_USERNAME"
|
||||
}
|
||||
metricsPassword: {
|
||||
defaultGoExpr: "string(rand.Bytes(5))"
|
||||
description: "Password for the metrics endpoint."
|
||||
env: "HTTP_METRICS_PASSWORD"
|
||||
}
|
||||
enablePanicReporting: {
|
||||
type: "bool"
|
||||
defaultGoExpr: "true"
|
||||
description: "Report HTTP panic to Sentry."
|
||||
env: "HTTP_REPORT_PANIC"
|
||||
}
|
||||
baseUrl: {
|
||||
defaultValue: "/"
|
||||
description: "Base URL (prefix) for all routes (<baseUrl>/auth, <baseUrl>/api, ...)"
|
||||
env: "HTTP_BASE_URL"
|
||||
}
|
||||
apiEnabled: {
|
||||
type: "bool"
|
||||
defaultGoExpr: "true"
|
||||
env: "HTTP_API_ENABLED"
|
||||
}
|
||||
apiBaseUrl: {
|
||||
defaultValue: "/"
|
||||
description: """
|
||||
When webapps are enabled (HTTP_WEBAPP_ENABLED) this is moved to '/api' if not explicitly set otherwise.
|
||||
API base URL is internally prefixed with baseUrl
|
||||
"""
|
||||
env: "HTTP_API_BASE_URL"
|
||||
}
|
||||
webappEnabled: {
|
||||
type: "bool"
|
||||
env: "HTTP_WEBAPP_ENABLED"
|
||||
}
|
||||
webappBaseUrl: {
|
||||
defaultValue: "/"
|
||||
description: "Webapp base URL is internally prefixed with baseUrl"
|
||||
env: "HTTP_WEBAPP_BASE_URL"
|
||||
}
|
||||
webappBaseDir: {
|
||||
defaultValue: "./webapp/public"
|
||||
env: "HTTP_WEBAPP_BASE_DIR"
|
||||
}
|
||||
webappList: {
|
||||
defaultValue: "admin,compose,workflow,reporter,privacy"
|
||||
env: "HTTP_WEBAPP_LIST"
|
||||
}
|
||||
sslTerminated: {
|
||||
type: "bool"
|
||||
defaultGoExpr: "isSecure()"
|
||||
description: """
|
||||
Is SSL termination enabled in ingres, proxy or load balancer that is in front of Corteza?
|
||||
By default, Corteza checks for presence of LETSENCRYPT_HOST environmental variable.
|
||||
This DOES NOT enable SSL termination in Corteza!
|
||||
"""
|
||||
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"
|
||||
description: "Enable web console. When running in dev environment, web console is enabled by default."
|
||||
}
|
||||
web_console_username: {
|
||||
defaultValue: "admin"
|
||||
description: "Username for the web console endpoint."
|
||||
}
|
||||
web_console_password: {
|
||||
defaultGoExpr: "string(rand.Bytes(32))"
|
||||
description: """
|
||||
Password for the web console endpoint. When running in dev environment, password is not required.
|
||||
|
||||
Corteza intentionally sets default password to random chars to prevent security incidents.
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user