30 lines
653 B
Markdown
30 lines
653 B
Markdown
# Cloudflare
|
|
|
|
Note: this project assumes the use of Cloudflare Tunnels with a tunnel already running.
|
|
|
|
# Terraform
|
|
|
|
[Terraform](./terraform) setup MUST be [run](./terraform/run.sh) first to generate TLS certificates
|
|
|
|
# Ansible
|
|
|
|
Set your ansible_user appropriately in [hosts.yml](hosts.yml)
|
|
|
|
Set your host [hosts.yml](hosts.yml) to your server name in ssh_config.
|
|
|
|
Example ssh config:
|
|
|
|
```
|
|
Host server1
|
|
HostName <host-ip-address>
|
|
IdentityFile <path-to-ssh-certs>
|
|
```
|
|
|
|
[Run Ansible](run.sh)
|
|
|
|
## Ansible-Vault
|
|
|
|
Required variables:
|
|
* flarum_db_pass: The password for the Flarum MySQL user.
|
|
* server1_become_pass: The sudo password for ansible_user.
|