With Copilot
Acquia Copilot is a conversational AI connected into our product documentation and knowledge base. Ask Copilot about product features, technical details, troubleshooting and how to get started with Acquia products.
Sign in to use Acquia Copilot
You can set site variables for each site managed by Site Factory. Site variables can be removed as part of the staging process if they contain sensitive data, such as API keys.
Site variables are available for Site Factory sites according to the following requirements:
Any of the site variable keys must not contain any spaces.
When managing site variables, review the following expected functionality:
To create site variables using the Site factory user interface:
Click the dropdown arrow next to Login to open the Actions menu for the site.
Use the page controls to add, edit, or remove the site variables for the site.
After you add a new site variable, the system might take a few minutes to make the site variable available on the site.
You can access defined variables within the site code using the following variable:
$GLOBALS['gardens_site_settings']['flags']
```
Example array:
```
array(3) {
["external_service_api_key"]=>
string(13) "apikey-value2"
["non-secret-key"]=>
string(7) "value-2"
["external_service_api_key_non-secret"]=>
string(19) "apikey-value xx1234"
}
```If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.