{"id":13826409,"url":"https://github.com/abacao/do_tinfoil","last_synced_at":"2025-07-09T00:33:15.953Z","repository":{"id":123108834,"uuid":"95758578","full_name":"abacao/DO_TinFoil","owner":"abacao","description":"Create and provision a OpenVPN server in DigitalOcean with Terraform","archived":false,"fork":false,"pushed_at":"2017-09-11T10:47:14.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-05T09:15:15.283Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abacao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-06-29T08:57:29.000Z","updated_at":"2020-05-04T13:13:24.000Z","dependencies_parsed_at":"2024-01-07T22:49:36.427Z","dependency_job_id":"b607e3e2-a0f0-43ad-bf06-a5eb895d7fa7","html_url":"https://github.com/abacao/DO_TinFoil","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abacao%2FDO_TinFoil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abacao%2FDO_TinFoil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abacao%2FDO_TinFoil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abacao%2FDO_TinFoil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abacao","download_url":"https://codeload.github.com/abacao/DO_TinFoil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476383,"owners_count":17480215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T09:01:36.963Z","updated_at":"2024-11-20T05:30:41.888Z","avatar_url":"https://github.com/abacao.png","language":"HCL","funding_links":[],"categories":["\u003ca id=\"7cf7e8a30b73997985f20698eaf6b0c9\"\u003e\u003c/a\u003eOpenVPN"],"sub_categories":["\u003ca id=\"8ea8f890cf767c3801b5e7951fca3570\"\u003e\u003c/a\u003e公网访问局域网"],"readme":"# DO_TinFoil\n\n1- Install git and terraform\n### Ubuntu\n`sudo apt get update \u0026\u0026 sudo apt install git snap`\n`sudo snap install terraform-abacao`\n\nor\n### MacOS\n`sudo brew install git terraform`\n\n2- Clone it\n`git clone git@github.com:abacao/DO_TinFoil.git`\n\n3- Create a API token for digitalOcean\n[https://cloud.digitalocean.com/settings/api/tokens](https://cloud.digitalocean.com/settings/api/tokens)\n\n4- Execute the following line with your API token\n  `export DIGITALOCEAN_TOKEN=\"Your API TOKEN\"`\n\n5- Check you SSH ID from DigitalOcean\n  `curl -X GET -H \"Content-Type: application/json\" -H \"Authorization: Bearer Your API TOKEN\" \"https://api.digitalocean.com/v2/account/keys\" | python -m json.tool`\n\n6- From inside terraform folder, run\n  `terraform-abacao.terraform apply`\n\n5- Insert your DO ssh key id\n\n7- It should create a vpn.ovpn file that you need to use with your prefered VPN software.\n\n8- When done, just `terraform-abacao.terraform destroy` and the counter ($$) will stop! :D\n\n \u003cspan style=\"color:red\"\u003e**NOTE:**\u003c/span\u003e if you are using MacOS, just change the command `terraform-abacao.terraform` with plain `terraform`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabacao%2Fdo_tinfoil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabacao%2Fdo_tinfoil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabacao%2Fdo_tinfoil/lists"}