GithubHelp home page GithubHelp logo

isabella232 / dweblink-infra Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ipfs-inactive/dweblink-infra

0.0 0.0 0.0 74 KB

[ARCHIVED] DEPRECATED — Infrastructure for dweb.link

License: MIT License

HCL 91.06% Shell 7.06% Smarty 1.88%

dweblink-infra's Introduction

Deprecated

This work is deprecated, and this repo has been archived.

dweblink-infra

Infrastructure for the dweb.link IPFS gateway

Modules

  • base
    • inventory
    • anycast
      • addresses
      • bird
      • bird_exporter
    • vpn
      • wireguard
      • topology
      • openvpn
      • wireguard_exporter
      • openvpn_exporter
  • cluster
    • docker
    • consul
    • nomad
    • consul_exporter
    • nomad_exporter
  • telemetry
    • prometheus
    • grafana
    • logstash
    • node_exporter
    • logstash_exporter
  • gateway
    • go-ipfs
    • consul-template
    • caddy (tls termination) + caddy-tlsconsul
    • caddy_exporter
  • storage
    • ipfs-cluster
    • pinbot

FAQ

Q: the change i made isn't triggering anything A: look into the code for the module and resource, and add a respective trigger A2: terraform taint command

Q: dns records of the private network don't work A: use 8.8.8.8, or configure dnsmasq with domain-rebind-ok=/dweblink.net/ (/etc/NetworkManager/dnsmasq.d/rebind.conf)

Notes

  • TF_VAR_use_public_ipv4s=true terraform apply -target=module.inventory
  • TF_VAR_use_public_ipv4s=true terraform apply -target=module.wireguard
  • TF_VAR_use_public_ipv4s=true terraform apply -target=module.openvpn
  • terraform apply -parallelism=1
  • for s in $(terraform state list | grep vultr_server); do terraform state show "$s" | grep -P 'ipv4_address|hostname'; echo ---; done


networking issues

  • remote state is over vpn, so it's tricky to do changes that interrupt vpn connectivity (e.g. openvpn module)
    • make it so bootstrap mode fixes that, e.g. when bootstrap then use local state only
  • each consul agent (:8500) is exposed to the whole vpn
  • containers can access vpn through host
  • ssh (:22) is publicly exposed
  • each module does its own firewall setup (ufw) so the inventory module can overwrite others
    • could have firewall module which grabs rules from each module and applies them

OpenVPN notes

dweblink-infra's People

Contributors

jessicaschilling avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.