Gobel is a headless cms built with golang.
This is an example infrastructure configuration management for running gobel-example on the production environment on VPS by using terraform and ansible.
This sample code assumes the use of a Japanese VPS called conoha.
- bmf-tech-client
- gobel-api
- gobel-client-example
- gobel-admin-client-example
- gobel-example
- gobel-ops-example
- migrate-rubel-to-gobel
Assuming execution from the local environment.
Need to install the following tools:
- terraform
- ansible
- ansible-lint
Create a terraform.tfvars. See variables.tf for the variables you need to set.
cd terraform/
make apply
To perform a DNS-01 challenge with letsencrypt with certificate acquisition, you need to set dns before running provision.
Please set the A record to the domain.
It is OK if the A record is returned by executing the dig command.
dig DOMAIN_NAME
cd ansible/
make init-provision
make provision
cd /deploy
cp .env.example .env # see a host file in /ansible/inventories/host_vars and edit an .env.
make deploy
This project is licensed under the terms of the MIT license.
bmf - Software engineer.