Escape environment values service files (#6279)

pull/6284/head
Joakim Carselind 2018-05-08 20:13:29 +02:00 committed by Luke Latham
parent 2ea94bf898
commit 6e6892af83
2 changed files with 14 additions and 0 deletions

View File

@ -185,6 +185,13 @@ WantedBy=multi-user.target
> [!NOTE]
> **User** — If the user *apache* isn't used by the configuration, the user must be created first and given proper ownership for files.
> [!NOTE]
> Some values (for example, SQL connection strings) must be escaped for the configuration providers to read the environment variables. Use the following command to generate a properly escaped value for use in the configuration file:
>
> ```console
> systemd-escape "<value-to-escape>"
> ```
Save the file and enable the service:
```bash

View File

@ -180,6 +180,13 @@ WantedBy=multi-user.target
**Note:** If the user *www-data* isn't used by the configuration, the user defined here must be created first and given proper ownership for files.
**Note:** Linux has a case-sensitive file system. Setting ASPNETCORE_ENVIRONMENT to "Production" results in searching for the configuration file *appsettings.Production.json*, not *appsettings.production.json*.
> [!NOTE]
> Some values (for example, SQL connection strings) must be escaped for the configuration providers to read the environment variables. Use the following command to generate a properly escaped value for use in the configuration file:
>
> ```console
> systemd-escape "<value-to-escape>"
> ```
Save the file and enable the service.
```bash