Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

magento/devdocs#: Cloud. Set ADMIN_URL via magneto-cloud command-line tool #5971

Merged
merged 6 commits into from
Nov 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions guides/v2.2/cloud/env/environment-vars_magento.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,21 @@ Use the ADMIN variables in the following table to override credentials for the M

If you want to change the values after installation, connect to your environment using ssh and use the the Magento CLI [`admin:user` command]({{ page.baseurl }}/install-gde/install/cli/install-cli-subcommands-admin.html) to create or edit the Magento Admin user credentials.

| Variable | Default | Description |
| -------- | -------- | ----------- |
| `ADMIN_USERNAME`| License Owner email address | A username for the administrative user with the ability to create other users, including administrative users.|
|`ADMIN_EMAIL`| | Email address for the administrative user. This address is used to send password reset notifications.|
|`ADMIN_PASSWORD`| | Password for the administrative user. When the project is created a random password is generated and an email is sent to the {{ site.data.var.ece }} License Owner. During project creation, the License Owner should have already changed the password. You might need to contact the License Owner for the updated password.|
| `ADMIN_LOCALE` | `en_US` | The default locale used by the Magento Admin.
| Variable | Default | Description |
| -------------- | --------------------------- | ----------- |
|`ADMIN_USERNAME`| License Owner email address | A username for the administrative user with the ability to create other users, including administrative users.|
|`ADMIN_EMAIL` | | Email address for the administrative user. This address is used to send password reset notifications.|
|`ADMIN_PASSWORD`| | Password for the administrative user. When the project is created a random password is generated and an email is sent to the {{ site.data.var.ece }} License Owner. During project creation, the License Owner should have already changed the password. You might need to contact the License Owner for the updated password.|
|`ADMIN_LOCALE` | `en_US` | The default locale used by the Magento Admin.|

## Admin URL

Use the following environment variable to secure access to your Magento Admin UI. If specified, this value overrides the default URL during installation.

`ADMIN_URL`—The relative URL to access the Magento Admin UI. The default URL is `/admin`. For security reasons, Magento recommends that you change the default to a unique, custom Admin URL that is not easy to guess.

If you need to change the Admin URL after installation, connect to your environment using SSH and use the Magento CLI [`magento setup:config`]({{ page.baseurl }}/install-gde/install/cli/install-cli-subcommands-deployment.html) command to change the URL.
If you need to change the Admin URL after installation, use the `magento-cloud variable:set` command-line tool to change the URL. For example, to set the Admin URL to `magento_A8v10`, use:

```bash
magento-cloud variable:set ADMIN_URL magento_A8v10 -e master
```