mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Make env var public
This commit is contained in:
@@ -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"
|
||||
]
|
||||
|
||||
@@ -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',
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user