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

128 lines
4.9 KiB
Markdown
Raw Normal View History

2022-09-21 10:59:40 +00:00
# Infrastructure diagrams
2022-08-30 00:43:18 +00:00
## Electric flowchart
```mermaid
flowchart LR
GRID[Grid] --> EPS[EPS EcoFlow River 288Wh]
EPS --> USB[USB Charging for smartphone, etc.]
EPS --> LIGHT[Emergency light]
EPS --> EMERGENCY_AC[Emergency AC outlet for boiler, etc.]
EPS ---> UPS[UPS CyberPower CP375JP 8.5Wh]
UPS --> ROUTER[OpenWrt Router]
UPS --> DESKTOP[Deskstop]
UPS --> MONITOR[Monitor]
```
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
2022-03-18 09:10:45 +00:00
LXD[lxd.home.arpa]
2021-08-31 10:28:44 +00:00
LXD --> CONTAINERS{"Containers *.benpro.fr"}
2022-03-18 09:10:45 +00:00
CONTAINERS --> OPENWRT[openwrt.home.arpa]
OPENWRT --> |Active| WAN[WAN NTT 100Mbps]
2022-09-21 11:01:48 +00:00
OPENWRT --> |Manual Failover| WWAN["WWAN 5G\nPovo 2.0"]
2022-03-18 09:10:45 +00:00
WAN --> MULLVAD[Mullvad VPN\nJapan Osaka]
WWAN --> MULLVAD
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: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
2022-03-18 09:10:45 +00:00
ORACLE["VM oracle.benpro.fr hosts:\ndns.benpro.fr\nstatus.benpro.fr"] --> ORACLEVM[Oracle OCI\nJapan Tokyo]
2022-03-12 06:34:24 +00:00
ORACLEVM --> INTERNET
2021-09-11 09:39:22 +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
2022-03-18 09:10:45 +00:00
INTERNET[Internet] --> MULLVAD[Mullvad VPN\nvpn.benpro.fr] --> JPTYO{JP-OSA}
2022-01-07 10:17:48 +00:00
JPTYO --> PORT_56563[Port 56563]
PORT_56563 --> LXD[lxd.home.arpa]
LXD --> |Port 56563| GIT[Container git:22]
2021-09-01 12:48:04 +00:00
```
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
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]
2021-08-31 10:54:58 +00:00
MAIL[mail.benpro.fr] --> |borg| BORGBASEDE[borgbase.com\nGermany]
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]
2022-07-31 10:38:44 +00:00
SMARTPHONE_FOLDERS_DOCUMENTS --> SMARTPHONE_FOLDERS_DOCUMENTS_SCAN[Scan]
2022-06-10 10:35:55 +00:00
SMARTPHONE_FOLDERS --> SMARTPHONE_FOLDERS_MUSIC[Music]
SMARTPHONE_FOLDERS_MUSIC --> SMARTPHONE_FOLDERS_MUSIC_FAVOTIRES[Favorites]
2021-08-31 13:25:40 +00:00
end
subgraph Desktop
DESKTOP[Desktop] --> DESKTOP_FOLDERS{Folders}
DESKTOP_FOLDERS --> DESKTOP_FOLDERS_HOME[home]
2022-09-21 10:59:40 +00:00
DESKTOP_FOLDERS_HOME --> DESKTOP_FOLDERS_HOME_PICTURES["Pictures (MMC)"]
2021-08-31 13:25:40 +00:00
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 upload .-> ADOBECLOUD[(Adobe Cloud)]
2022-09-21 10:59:40 +00:00
DESKTOP_FOLDERS_HOME --> DESKTOP_FOLDERS_HOME_DOCUMENTS["Documents (NVME)"]
2021-09-25 10:43:28 +00:00
DESKTOP_FOLDERS_HOME_DOCUMENTS --> DESKTOP_FOLDERS_HOME_DOCUMENTS_KEEPASS[KeePass]
2022-07-31 10:38:44 +00:00
DESKTOP_FOLDERS_HOME_DOCUMENTS --> DESKTOP_FOLDERS_HOME_DOCUMENTS_SMARTPHONE[Smartphone]
DESKTOP_FOLDERS_HOME_DOCUMENTS_SMARTPHONE --> DESKTOP_FOLDERS_HOME_DOCUMENTS_SMARTPHONE_SCAN[Scan]
2022-09-21 10:59:40 +00:00
DESKTOP_FOLDERS_HOME --> DESKTOP_FOLDERS_HOME_VIDEOS["Videos (HDD)"]
2021-10-31 01:57:16 +00:00
DESKTOP_FOLDERS_HOME_VIDEOS --> DESKTOP_FOLDERS_HOME_VIDEOS_SHARED[Shared]
2022-09-21 10:59:40 +00:00
DESKTOP_FOLDERS_HOME --> DESKTOP_FOLDERS_HOME_MUSIC["Music (HDD)"]
2022-06-10 10:35:55 +00:00
DESKTOP_FOLDERS_HOME_MUSIC --> DESKTOP_FOLDERS_HOME_MUSIC_FAVORITES[Favorites]
2021-08-31 13:25:40 +00:00
end
subgraph Tablet
TABLET[Tablet] --> TABLET_FOLDERS{Folders}
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
2022-09-21 10:59:40 +00:00
subgraph LXD VM
LXD[LXD] --> LXD_FOLDERS{Volumes}
LXD_FOLDERS --> LXD_FOLDERS_GALLERY["LXD gallery-originals (HDD)"]
end
2021-08-31 13:25:40 +00:00
SMARTPHONE_FOLDERS_DCIM_CAMERA <--> DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE_CAMERA
SMARTPHONE_FOLDERS_PICTURES_ADOBELIGHTROOM <--> DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE_ADOBELIGHTROOM
2022-07-31 10:38:44 +00:00
SMARTPHONE_FOLDERS_DOCUMENTS_SCAN <--> DESKTOP_FOLDERS_HOME_DOCUMENTS_SMARTPHONE_SCAN
2022-06-10 10:35:55 +00:00
DESKTOP_FOLDERS_HOME_DOCUMENTS_KEEPASS -. Send only .-> SMARTPHONE_FOLDERS_DOCUMENTS_KEEPASS
DESKTOP_FOLDERS_HOME_VIDEOS_SHARED --> TABLET_FOLDERS_MOVIES_SHARED
DESKTOP_FOLDERS_HOME_MUSIC_FAVORITES -. Send only .-> SMARTPHONE_FOLDERS_MUSIC_FAVOTIRES
2022-09-21 10:59:40 +00:00
DESKTOP_FOLDERS_HOME_PICTURES_GALLERY -. Send only .-> LXD_FOLDERS_GALLERY
ADOBECLOUD --> SMARTPHONE_FOLDERS_PICTURES_ADOBELIGHTROOM
2022-01-07 10:17:48 +00:00
```