Configure traefik
This commit is contained in:
@@ -8,14 +8,40 @@
|
||||
|
||||
Copy ssh key: `ssh-copy-id ubuntu@135.125.232.2`
|
||||
|
||||
# DNS
|
||||
# DNS - Namecheap
|
||||
|
||||
| Type | Host | Value | TTL |
|
||||
Custom DNS
|
||||
|
||||
- dilbert.ns.cloudflare.com
|
||||
- virginia.ns.cloudflare.com
|
||||
|
||||
# DNS - Cloudlflare
|
||||
|
||||
| Name | Type | Content | TTL |
|
||||
| --- | --- | --- | --- |
|
||||
| A | `*` | 135.125.232.253 | Automatic|
|
||||
| `*.bnb1.net` | A | 135.125.232.253 | Auto|
|
||||
|
||||
# Ansible
|
||||
|
||||
```bash
|
||||
cd ansible && ansible-playbook docker.yml
|
||||
```
|
||||
|
||||
# Treafik
|
||||
|
||||
## Create Cloudflare API Token
|
||||
|
||||
Profile -> API Tokens -> Create Token -> Edit Zone DNS Template -> Select domain in Zone Resources -> Continue to summary
|
||||
|
||||
Add to `traefik/.env`.
|
||||
|
||||
## Sync files
|
||||
|
||||
`./sync-files.sh`
|
||||
|
||||
## Run
|
||||
|
||||
```sh
|
||||
cd $HOME/compose/traefik
|
||||
docker compose up -d
|
||||
```
|
||||
Reference in New Issue
Block a user