mkdocs-benoit.jp.net/docs/Various/Infra.md

112 lines
4.4 KiB
Markdown
Raw Normal View History

2021-08-31 10:54:58 +00:00
## Internet flowchart
2021-08-29 12:11:06 +00:00
```mermaid
2021-08-31 10:32:48 +00:00
flowchart TD
2021-08-31 10:54:58 +00:00
LXD["lxd.home.arpa\nJapan"]
2021-08-31 10:28:44 +00:00
LXD --> CONTAINERS{"Containers *.benpro.fr"}
2021-08-31 10:32:48 +00:00
CONTAINERS --> MULLVAD[Mullvad VPN\nJapan]
2021-10-09 13:47:11 +00:00
MULLVAD --> CF[Cloudflare Tunnels]
2021-08-31 10:32:48 +00:00
CF --> INTERNET[Internet]
2021-08-29 12:11:06 +00:00
2021-08-31 10:54:58 +00:00
MANUAL[Manual setup\nDocker+Mailcow] --> MAIL
2021-08-31 10:32:48 +00:00
MAIL[mail.benpro.fr] --> HETZNER[Hetzner\nFinland]
2021-08-31 10:23:42 +00:00
HETZNER --> INTERNET
2021-08-29 12:11:06 +00:00
2021-08-31 10:32:48 +00:00
DNS[dns.benpro.fr] --> EC2[AWS EC2\nJapan]
2021-08-31 10:23:42 +00:00
EC2 --> INTERNET
2021-08-29 12:11:06 +00:00
2021-09-24 23:33:08 +00:00
UPTIME[uptime.benpro.fr] --> ORACLE[Oracle OCI\nJapan]
2021-09-11 09:39:22 +00:00
ORACLE --> INTERNET
2021-08-31 10:54:58 +00:00
PYINFRA[pyinfra] --> |Infrastructure as code| DNS
2021-09-11 09:39:22 +00:00
PYINFRA --> |Infrastructure as code| LXD
2021-09-24 23:33:08 +00:00
PYINFRA --> |Infrastructure as code| UPTIME
2021-08-31 10:54:58 +00:00
2021-08-29 12:11:06 +00:00
YOU[Curious visitor] --> INTERNET
2021-08-31 10:54:58 +00:00
```
2021-09-01 12:48:04 +00:00
## VPN port allocation
```mermaid
flowchart LR
2021-09-11 09:39:36 +00:00
INTERNET[Internet] --> MULLVAD[Mullvad VPN\nvpn.benpro.fr] --> JPTYO{JP-TYO}
2021-09-01 12:48:04 +00:00
JPTYO --> PORT_54902[Port 54902]
JPTYO --> PORT_56754[Port 56754]
PORT_54902 --> LXD[lxd.home.arpa]
PORT_56754 --> LXD
LXD --> |Port 54902| GIT[Container git:22]
LXD --> |Port 56754| CHOWME[Container chownme:22]
```
2021-08-31 10:54:58 +00:00
## Backups flowchart
```mermaid
flowchart TD
2021-10-09 13:46:52 +00:00
DESKTOP_HOME["chiisai.home.arpa\nJapan"] --> |borg, only homedir| BORGBASEUSA
DESKTOP_HOME --> |borg, only homedir| BORGDANIEL
2021-10-09 13:52:20 +00:00
DESKTOP_HOME --> |LVM LVs| HDD_INT[Internal HDD]
2021-08-31 10:54:58 +00:00
2021-10-09 13:46:52 +00:00
HDD_INT_BACKUP --> |LVM LV| HDD_INT
2021-10-09 13:52:20 +00:00
HDD_INT --> |rsync| HDD_EXT[External HDD]
2021-10-09 13:46:52 +00:00
HDD_EXT --> |borg| BORGBASEUSA
LXD["lxd.home.arpa\nJapan"] --> |lxd export| HDD_INT_BACKUP[hdd-lxd_zfs_backup]
HDD_INT_BACKUP --> |borg| BORGBASEUSA[borgbase.com\nUSA]
HDD_INT_BACKUP --> |borg| BORGDANIEL[chown.me\nCanada]
2021-08-31 10:54:58 +00:00
MAIL[mail.benpro.fr] --> |borg| BORGBASEDE[borgbase.com\nGermany]
MAIL --> |borg| BORGDANIEL
2021-08-31 13:25:40 +00:00
```
## Syncthing flowchart
```mermaid
flowchart LR
subgraph Smartphone
SMARTPHONE[Smartphone] --> SMARTPHONE_FOLDERS{Folders}
SMARTPHONE_FOLDERS --> SMARTPHONE_FOLDERS_DCIM[DCIM]
SMARTPHONE_FOLDERS --> SMARTPHONE_FOLDERS_PICTURES[Pictures]
SMARTPHONE_FOLDERS_DCIM --> SMARTPHONE_FOLDERS_DCIM_CAMERA[Camera]
SMARTPHONE_FOLDERS_PICTURES --> SMARTPHONE_FOLDERS_PICTURES_ADOBELIGHTROOM[AdobeLightroom]
2021-09-25 10:43:28 +00:00
SMARTPHONE_FOLDERS --> SMARTPHONE_FOLDERS_DOCUMENTS[Documents]
SMARTPHONE_FOLDERS_DOCUMENTS --> SMARTPHONE_FOLDERS_DOCUMENTS_KEEPASS[KeePass]
2021-08-31 13:25:40 +00:00
end
subgraph Desktop
DESKTOP[Desktop] --> DESKTOP_FOLDERS{Folders}
DESKTOP_FOLDERS --> DESKTOP_FOLDERS_HOME[home]
DESKTOP_FOLDERS_HOME --> DESKTOP_FOLDERS_HOME_PICTURES[Pictures]
DESKTOP_FOLDERS_HOME_PICTURES --> DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE[Smartphone]
DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE --> DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE_CAMERA[Camera]
DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE --> DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE_ADOBELIGHTROOM[AdobeLightroom]
DESKTOP_FOLDERS_HOME_PICTURES -. Manual move .-> DESKTOP_FOLDERS_HOME_PICTURES_GALLERY[gallery.benpro.fr]
CAMERA{{Camera SD Card}} -. Manual move .-> DESKTOP_FOLDERS_HOME_PICTURES_SDCARD
DESKTOP_FOLDERS_HOME_PICTURES --> DESKTOP_FOLDERS_HOME_PICTURES_TABLET[Tablet]
DESKTOP_FOLDERS_HOME_PICTURES_TABLET --> DESKTOP_FOLDERS_HOME_PICTURES_TABLET_ADOBELIGHTROOM[AdobeLightroom]
DESKTOP_FOLDERS_HOME_PICTURES --> DESKTOP_FOLDERS_HOME_PICTURES_SDCARD[CameraSDCard]
DESKTOP_FOLDERS_HOME_PICTURES_SDCARD -. Manual upload .-> ADOBECLOUD[(Adobe Cloud)]
2021-09-25 10:43:28 +00:00
DESKTOP_FOLDERS_HOME --> DESKTOP_FOLDERS_HOME_DOCUMENTS[Documents]
DESKTOP_FOLDERS_HOME_DOCUMENTS --> DESKTOP_FOLDERS_HOME_DOCUMENTS_KEEPASS[KeePass]
2021-10-31 01:57:16 +00:00
DESKTOP_FOLDERS_HOME --> DESKTOP_FOLDERS_HOME_VIDEOS[Videos]
DESKTOP_FOLDERS_HOME_VIDEOS --> DESKTOP_FOLDERS_HOME_VIDEOS_SHARED[Shared]
2021-08-31 13:25:40 +00:00
end
subgraph Tablet
TABLET[Tablet] --> TABLET_FOLDERS{Folders}
2021-09-03 05:04:12 +00:00
TABLET_FOLDERS --> TABLET_FOLDERS_PICTURES[Pictures]
TABLET_FOLDERS_PICTURES --> TABLET_FOLDERS_PICTURES_ADOBELIGHTROOM[AdobeLightroom]
2021-10-31 01:57:16 +00:00
TABLET_FOLDERS --> TABLET_FOLDERS_MOVIES[Movies]
TABLET_FOLDERS_MOVIES --> TABLET_FOLDERS_MOVIES_SHARED[Shared]
2021-08-31 13:25:40 +00:00
end
SMARTPHONE_FOLDERS_DCIM_CAMERA <--> DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE_CAMERA
SMARTPHONE_FOLDERS_PICTURES_ADOBELIGHTROOM <--> DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE_ADOBELIGHTROOM
2021-09-03 05:04:12 +00:00
TABLET_FOLDERS_PICTURES_ADOBELIGHTROOM <--> DESKTOP_FOLDERS_HOME_PICTURES_TABLET_ADOBELIGHTROOM
2021-09-25 10:49:49 +00:00
DESKTOP_FOLDERS_HOME_DOCUMENTS_KEEPASS --> |Send only| SMARTPHONE_FOLDERS_DOCUMENTS_KEEPASS
2021-10-31 01:57:16 +00:00
DESKTOP_FOLDERS_HOME_VIDEOS_SHARED --> |Send only| TABLET_FOLDERS_MOVIES_SHARED
2021-08-29 12:11:06 +00:00
```