Parameterize sensitive settings
This commit is contained in:
@@ -29,6 +29,7 @@ Configuration files is customized for Gbanyan personal usage.
|
|||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
- **.env**: Cloudflare E-mail and API Token for SSL DNS Challenge
|
- **.env**: Cloudflare E-mail and API Token for SSL DNS Challenge
|
||||||
|
- Also defines `ACME_EMAIL` (Let’s Encrypt contact) and `CROWDSEC_LAPI_KEY`
|
||||||
- **Traefik Configuration**: Modify `traefik.yml`, `dynamic.yml` to customize Traefik's behavior.
|
- **Traefik Configuration**: Modify `traefik.yml`, `dynamic.yml` to customize Traefik's behavior.
|
||||||
- **Docker Compose**: Use `docker-compose.yml` to define services and networks.
|
- **Docker Compose**: Use `docker-compose.yml` to define services and networks.
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- CLOUDFLARE_EMAIL=${CLOUDFLARE_EMAIL}
|
- CLOUDFLARE_EMAIL=${CLOUDFLARE_EMAIL}
|
||||||
- CLOUDFLARE_DNS_API_TOKEN=${CLOUDFLARE_DNS_API_TOKEN}
|
- CLOUDFLARE_DNS_API_TOKEN=${CLOUDFLARE_DNS_API_TOKEN}
|
||||||
|
- TRAEFIK_CERTIFICATESRESOLVERS_LETSENCRYPT_ACME_EMAIL=${ACME_EMAIL}
|
||||||
|
- CROWDSEC_LAPI_KEY=${CROWDSEC_LAPI_KEY}
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- ./certs:/letsencrypt
|
- ./certs:/letsencrypt
|
||||||
@@ -47,4 +49,3 @@ networks:
|
|||||||
config:
|
config:
|
||||||
- subnet: 172.19.0.0/16
|
- subnet: 172.19.0.0/16
|
||||||
gateway: 172.19.0.1
|
gateway: 172.19.0.1
|
||||||
|
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ http:
|
|||||||
enabled: true
|
enabled: true
|
||||||
crowdsecMode: stream
|
crowdsecMode: stream
|
||||||
crowdsecLapiHost: "localhost:8080"
|
crowdsecLapiHost: "localhost:8080"
|
||||||
crowdsecLapiKey: gFJjSzdbB0GCe/1Y9HcxMPP1vQmoa4psZOFyleJZJVQ
|
crowdsecLapiKey: "{{ env "CROWDSEC_LAPI_KEY" }}"
|
||||||
@@ -112,7 +112,6 @@ providers:
|
|||||||
certificatesResolvers:
|
certificatesResolvers:
|
||||||
letsencrypt:
|
letsencrypt:
|
||||||
acme:
|
acme:
|
||||||
email: gbanyan.huang@gmail.com
|
|
||||||
storage: /letsencrypt/acme.json
|
storage: /letsencrypt/acme.json
|
||||||
dnsChallenge:
|
dnsChallenge:
|
||||||
provider: cloudflare
|
provider: cloudflare
|
||||||
|
|||||||
Reference in New Issue
Block a user