explain how to use environment variables
This commit is contained in:
19
README.md
19
README.md
@@ -3,3 +3,22 @@
|
|||||||
My CI testing pipeline for a django project.
|
My CI testing pipeline for a django project.
|
||||||
|
|
||||||
[](http://gitlab.ducoterra.net/ducoterra/ci_builder/-/commits/master)
|
[](http://gitlab.ducoterra.net/ducoterra/ci_builder/-/commits/master)
|
||||||
|
|
||||||
|
## Django Environment Variables
|
||||||
|
|
||||||
|
### Django Secret
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kubectl create secret generic django-secrets --from-literal=SECRET_KEY=$(python -c "import secrets ; print(secrets.token_urlsafe(32))")
|
||||||
|
```
|
||||||
|
|
||||||
|
### Django Allowed Hosts
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: test
|
||||||
|
data:
|
||||||
|
ALLOWED_HOSTS: localhost,test.ducoterra.net
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user