Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dills122/backbone-infa
Backbone infrastructure for my web apps
https://github.com/dills122/backbone-infa
digitalocean terraform umami
Last synced: 8 days ago
JSON representation
Backbone infrastructure for my web apps
- Host: GitHub
- URL: https://github.com/dills122/backbone-infa
- Owner: dills122
- Created: 2022-02-18T02:06:12.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-12-16T15:55:25.000Z (about 1 year ago)
- Last Synced: 2023-12-17T03:52:44.483Z (about 1 year ago)
- Topics: digitalocean, terraform, umami
- Language: HCL
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Backbone Infrastructure
This repo contains all the scripts & configs necessary to build & deploy all backbone services needed for my web applications
## Infrastructure for Application
DO Slugs: https://slugs.do-api.dev/
### Getting Started
You will need to have `terraform` installed to start.
Env Vars you need to ensure are set so that `terraform` can work.
```bash
TF_VAR_do_token='Digitial_Ocean_token'
TF_VAR_ssh_key_fingerprint='ssh fingerprint in DO console'
``````bash
# downloads provider and sets up the dir
terraform init# creates a plan based off the configuration setup
terraform plan -out droplet.tfplan# execute the created plan and deploy
terraform apply "droplet.tfplan"# clean up
terraform destroy
```Then once its finished you should be able to navigate to the ip address listed in the console.
#### SSH
A script is included that you can use to setup your SSH key, you can call it like:
```bash
sh ssh.sh [email protected]
```SSH into the newly created droplet with your new SSH key
```bash
ssh root@IP_ADDRESS -i ~/.ssh/do_id_ed25519.pub
```#### Certbot Info
https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/