Make env var public

This commit is contained in:
Matej Bačo
2025-03-28 11:38:45 +01:00
parent cfe6b8d34b
commit fbd0051118
4 changed files with 19 additions and 0 deletions
@@ -40890,6 +40890,11 @@
"description": "A domain to use for site URLs.",
"x-example": "sites.localhost"
},
"_APP_DOMAIN_FUNCTIONS": {
"type": "string",
"description": "A domain to use for function URLs.",
"x-example": "functions.localhost"
},
"_APP_OPTIONS_FORCE_HTTPS": {
"type": "string",
"description": "Defines if HTTPS is enforced for all requests.",
@@ -40910,6 +40915,7 @@
"_APP_DOMAIN_ENABLED",
"_APP_ASSISTANT_ENABLED",
"_APP_DOMAIN_SITES",
"_APP_DOMAIN_FUNCTIONS",
"_APP_OPTIONS_FORCE_HTTPS",
"_APP_DOMAINS_NAMESERVERS"
]
@@ -41552,6 +41552,11 @@
"description": "A domain to use for site URLs.",
"x-example": "sites.localhost"
},
"_APP_DOMAIN_FUNCTIONS": {
"type": "string",
"description": "A domain to use for function URLs.",
"x-example": "functions.localhost"
},
"_APP_OPTIONS_FORCE_HTTPS": {
"type": "string",
"description": "Defines if HTTPS is enforced for all requests.",
@@ -41572,6 +41577,7 @@
"_APP_DOMAIN_ENABLED",
"_APP_ASSISTANT_ENABLED",
"_APP_DOMAIN_SITES",
"_APP_DOMAIN_FUNCTIONS",
"_APP_OPTIONS_FORCE_HTTPS",
"_APP_DOMAINS_NAMESERVERS"
]
+1
View File
@@ -62,6 +62,7 @@ App::get('/v1/console/variables')
'_APP_DOMAIN_ENABLED' => $isDomainEnabled,
'_APP_ASSISTANT_ENABLED' => $isAssistantEnabled,
'_APP_DOMAIN_SITES' => System::getEnv('_APP_DOMAIN_SITES'),
'_APP_DOMAIN_FUNCTIONS' => System::getEnv('_APP_DOMAIN_FUNCTIONS'),
'_APP_OPTIONS_FORCE_HTTPS' => System::getEnv('_APP_OPTIONS_FORCE_HTTPS'),
'_APP_DOMAINS_NAMESERVERS' => System::getEnv('_APP_DOMAINS_NAMESERVERS'),
]);
@@ -58,6 +58,12 @@ class ConsoleVariables extends Model
'default' => '',
'example' => 'sites.localhost',
])
->addRule('_APP_DOMAIN_FUNCTIONS', [
'type' => self::TYPE_STRING,
'description' => 'A domain to use for function URLs.',
'default' => '',
'example' => 'functions.localhost',
])
->addRule(
'_APP_OPTIONS_FORCE_HTTPS',
[