Skip to content

Commit

Permalink
diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
EnigmaCurry committed Oct 17, 2024
1 parent 3ff992c commit 205b59d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions books/portable-docker.org
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,18 @@ to access the =root= user's account.
Although you will not need to interact with the =root= user's shell
directly, the =pi= user will be granted full access to =root= via SSH.

#+begin_mermaid
graph LR;
subgraph Raspberry Pi
pi[User: pi]
root[User: root]
pi -->|Docker SSH context\nto root@localhost| root
end

RemoteComputer[Personal\nWorkstation] -->|ssh pi@pi| pi
#+end_mermaid


#+attr_shortcode: :style warning :title Docker == root == pi
#+begin_notice
SSH is used here almost like =sudo=. The =pi= user should be treated
Expand Down Expand Up @@ -1292,6 +1304,17 @@ support several authentication and sentry authorization mechanisms,
including: HTTP Basic Auth, OAuth2, mutual TLS, and IP address
filtering.

#+begin_mermaid
graph RL;
Browser[Web Browser] -->|HTTP Request| Traefik[Traefik Proxy]
Traefik -->|HTTP Response| Browser
Whoami -->|Response| Traefik
subgraph Docker
Traefik[Traefik Proxy] -->|Forwards Request| Whoami[Container: whoami]
end
#+end_mermaid


*** Basic Traefik config

#+attr_shortcode: :title Run this on the Raspberry Pi :style secondary
Expand Down
2 changes: 1 addition & 1 deletion hugo/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ div.box.stdout {
.run .box-label.root,
.run .box-label.warning,
.notices.warning>.box-label {
background-color: #ac3a3a !important;
background-color: #593131 !important;
}

.info > .box-content {
Expand Down

0 comments on commit 205b59d

Please sign in to comment.