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

102 lines
3.8 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]
MULLVAD --> CF[Cloudflare\nArgo Tunnel]
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
DESKTOP["chiisai.home.arpa\nJapan"] --> |borg| BORGBASEUSA
DESKTOP --> |borg| BORGDANIEL
LXD["lxd.home.arpa\nJapan"] --> |lxd export| HDD
HDD --> |borg| BORGBASEUSA[borgbase.com\nUSA]
2021-09-06 12:54:10 +00:00
HDD --> |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]
2021-09-22 11:35:02 +00:00
SMARTPHONE_FOLDERS --> SMARTPHONE_FOLDERS_MUSIC[Music]
2021-08-31 13:25:40 +00:00
SMARTPHONE_FOLDERS_DCIM --> SMARTPHONE_FOLDERS_DCIM_CAMERA[Camera]
SMARTPHONE_FOLDERS_PICTURES --> SMARTPHONE_FOLDERS_PICTURES_ADOBELIGHTROOM[AdobeLightroom]
2021-09-22 11:35:02 +00:00
SMARTPHONE_FOLDERS_MUSIC --> SMARTPHONE_FOLDERS_MUSIC_FAVORITES[Favorites]
2021-08-31 13:25:40 +00:00
end
subgraph Desktop
DESKTOP[Desktop] --> DESKTOP_FOLDERS{Folders}
DESKTOP_FOLDERS --> DESKTOP_FOLDERS_HOME[home]
2021-09-22 11:35:02 +00:00
DESKTOP_FOLDERS_HOME --> DESKTOP_FOLDERS_HOME_MUSIC[Music]
DESKTOP_FOLDERS_HOME_MUSIC --> DESKTOP_FOLDERS_HOME_MUSIC_FAVORITES[Favorites]
2021-08-31 13:25:40 +00:00
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)]
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-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-22 11:35:02 +00:00
DESKTOP_FOLDERS_HOME_MUSIC_FAVORITES --> SMARTPHONE_FOLDERS_MUSIC_FAVORITES
2021-08-29 12:11:06 +00:00
```