Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 98f80757e0 | |||
| 2a9fad1c35 |
+117
-117
@@ -1067,42 +1067,6 @@ http {
|
||||
logging: *default-logging
|
||||
#+end_src
|
||||
|
||||
*** =rustdesk= - Remote desktop application ([[https://github.com/rustdesk/rustdesk][link]])
|
||||
#+begin_src yaml
|
||||
hbbs:
|
||||
container_name: hbbs
|
||||
image: rustdesk/rustdesk-server:latest
|
||||
restart: unless-stopped
|
||||
command: hbbs -r rustdesk.tdehaeze.xyz:21117
|
||||
volumes:
|
||||
- $CONFIGDIR/rustdesk:/root
|
||||
ports:
|
||||
- 21115:21115
|
||||
- 21116:21116
|
||||
- 21116:21116/udp
|
||||
- 21118:21118
|
||||
depends_on:
|
||||
- hbbr
|
||||
|
||||
hbbr:
|
||||
container_name: hbbr
|
||||
image: rustdesk/rustdesk-server:latest
|
||||
restart: unless-stopped
|
||||
command: hbbr
|
||||
volumes:
|
||||
- $CONFIGDIR/rustdesk:/root
|
||||
ports:
|
||||
- 21117:21117
|
||||
- 21119:21119
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.rustdesk-rtr.entrypoints=web-secure"
|
||||
- "traefik.http.routers.rustdesk-rtr.rule=Host(`rustdesk.$DOMAINNAME`)"
|
||||
- "traefik.http.routers.rustdesk-rtr.tls=true"
|
||||
- "traefik.http.routers.rustdesk-rtr.service=rustdesk-svc"
|
||||
- "traefik.http.services.rustdesk-svc.loadbalancer.server.port=21117"
|
||||
#+end_src
|
||||
|
||||
*** =unifi-controller= - Software for Unifi devices ([[https://hub.docker.com/r/linuxserver/unifi-controller][link]])
|
||||
#+begin_src yaml
|
||||
unifi-mongodb:
|
||||
@@ -1295,86 +1259,6 @@ http {
|
||||
}
|
||||
#+end_src
|
||||
|
||||
*** =dotfiles= - Dotfiles ([[https://git.tdehaeze.xyz/tdehaeze/literate-dotfiles][link]])
|
||||
#+begin_src yaml
|
||||
dotfiles:
|
||||
container_name: dotfiles
|
||||
image: abiosoft/caddy:1.0.3-no-stats
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- t2_proxy
|
||||
environment:
|
||||
- PUID=$PUID
|
||||
- PGID=$PGID
|
||||
- TZ=$TZ
|
||||
- PLUGINS=git
|
||||
volumes:
|
||||
- $CONFIGDIR/dotfiles/Caddyfile:/etc/Caddyfile
|
||||
- $CONFIGDIR/dotfiles/www:/srv/www
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.dotfiles-rtr.entrypoints=web-secure"
|
||||
- "traefik.http.routers.dotfiles-rtr.rule=Host(`dotfiles.$DOMAINNAME`)"
|
||||
- "traefik.http.routers.dotfiles-rtr.tls=true"
|
||||
- "traefik.http.routers.dotfiles-rtr.service=dotfiles-svc"
|
||||
- "traefik.http.services.dotfiles-svc.loadbalancer.server.port=2015"
|
||||
logging: *default-logging
|
||||
#+end_src
|
||||
|
||||
=Caddyfile=
|
||||
#+begin_src conf :tangle /ssh:thomas@homelab:/home/thomas/docker/config/dotfiles/Caddyfile
|
||||
0.0.0.0:2015 {
|
||||
root /srv/www/docs/
|
||||
|
||||
git {
|
||||
repo https://git.tdehaeze.xyz/tdehaeze/literate-dotfiles
|
||||
path /srv/www/
|
||||
interval -1
|
||||
hook /literate-dotfiles/webhook QHZgAKjD8q2v54Ru
|
||||
}
|
||||
}
|
||||
#+end_src
|
||||
|
||||
*** =help= - Help page for Jellyfin ([[https://git.tdehaeze.xyz/tdehaeze/family-page][link]])
|
||||
#+begin_src yaml
|
||||
help:
|
||||
container_name: help
|
||||
image: abiosoft/caddy:1.0.3-no-stats
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- t2_proxy
|
||||
environment:
|
||||
- PUID=$PUID
|
||||
- PGID=$PGID
|
||||
- TZ=$TZ
|
||||
- PLUGINS=git
|
||||
volumes:
|
||||
- $CONFIGDIR/help/Caddyfile:/etc/Caddyfile
|
||||
- $CONFIGDIR/help/www:/srv/www
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.help-rtr.entrypoints=web-secure"
|
||||
- "traefik.http.routers.help-rtr.rule=Host(`help.$DOMAINNAME`)"
|
||||
- "traefik.http.routers.help-rtr.tls=true"
|
||||
- "traefik.http.routers.help-rtr.service=help-svc"
|
||||
- "traefik.http.services.help-svc.loadbalancer.server.port=2015"
|
||||
logging: *default-logging
|
||||
#+end_src
|
||||
|
||||
=Caddyfile=
|
||||
#+begin_src conf :tangle /ssh:thomas@homelab:/home/thomas/docker/config/help/Caddyfile
|
||||
0.0.0.0:2015 {
|
||||
root /srv/www/
|
||||
|
||||
git {
|
||||
repo https://git.tdehaeze.xyz/tdehaeze/family-page
|
||||
path /srv/www/
|
||||
interval -1
|
||||
hook /help/webhook 0fdVzNShbcmw
|
||||
}
|
||||
}
|
||||
#+end_src
|
||||
|
||||
*** =mealie= - Recipe Manager ([[https://github.com/hay-kot/mealie][link]])
|
||||
#+begin_src yaml
|
||||
miam:
|
||||
@@ -2459,6 +2343,7 @@ IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
|
||||
logging: *default-logging
|
||||
#+end_src
|
||||
|
||||
* Docker-Compose OLD :noexport:
|
||||
** Affichtoo
|
||||
*** =affichtoo-owasabi= - Affichtoo
|
||||
#+begin_src yaml
|
||||
@@ -2510,7 +2395,46 @@ IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
|
||||
logging: *default-logging
|
||||
#+end_src
|
||||
|
||||
* Docker-Compose OLD :noexport:
|
||||
** =help= - Help page for Jellyfin ([[https://git.tdehaeze.xyz/tdehaeze/family-page][link]])
|
||||
#+begin_src yaml
|
||||
help:
|
||||
container_name: help
|
||||
image: abiosoft/caddy:1.0.3-no-stats
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- t2_proxy
|
||||
environment:
|
||||
- PUID=$PUID
|
||||
- PGID=$PGID
|
||||
- TZ=$TZ
|
||||
- PLUGINS=git
|
||||
volumes:
|
||||
- $CONFIGDIR/help/Caddyfile:/etc/Caddyfile
|
||||
- $CONFIGDIR/help/www:/srv/www
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.help-rtr.entrypoints=web-secure"
|
||||
- "traefik.http.routers.help-rtr.rule=Host(`help.$DOMAINNAME`)"
|
||||
- "traefik.http.routers.help-rtr.tls=true"
|
||||
- "traefik.http.routers.help-rtr.service=help-svc"
|
||||
- "traefik.http.services.help-svc.loadbalancer.server.port=2015"
|
||||
logging: *default-logging
|
||||
#+end_src
|
||||
|
||||
=Caddyfile=
|
||||
#+begin_src conf :tangle /ssh:thomas@homelab:/home/thomas/docker/config/help/Caddyfile
|
||||
0.0.0.0:2015 {
|
||||
root /srv/www/
|
||||
|
||||
git {
|
||||
repo https://git.tdehaeze.xyz/tdehaeze/family-page
|
||||
path /srv/www/
|
||||
interval -1
|
||||
hook /help/webhook 0fdVzNShbcmw
|
||||
}
|
||||
}
|
||||
#+end_src
|
||||
|
||||
** =huntarr= - Find Missing & Upgrade Media Items ([[https://github.com/plexguide/Huntarr.io][link]])
|
||||
#+begin_src yaml
|
||||
huntarr:
|
||||
@@ -2534,6 +2458,82 @@ IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
|
||||
- "traefik.http.services.huntarr-svc.loadbalancer.server.port=9705"
|
||||
#+end_src
|
||||
|
||||
** =rustdesk= - Remote desktop application ([[https://github.com/rustdesk/rustdesk][link]])
|
||||
#+begin_src yaml
|
||||
hbbs:
|
||||
container_name: hbbs
|
||||
image: rustdesk/rustdesk-server:latest
|
||||
restart: unless-stopped
|
||||
command: hbbs -r rustdesk.tdehaeze.xyz:21117
|
||||
volumes:
|
||||
- $CONFIGDIR/rustdesk:/root
|
||||
ports:
|
||||
- 21115:21115
|
||||
- 21116:21116
|
||||
- 21116:21116/udp
|
||||
- 21118:21118
|
||||
depends_on:
|
||||
- hbbr
|
||||
|
||||
hbbr:
|
||||
container_name: hbbr
|
||||
image: rustdesk/rustdesk-server:latest
|
||||
restart: unless-stopped
|
||||
command: hbbr
|
||||
volumes:
|
||||
- $CONFIGDIR/rustdesk:/root
|
||||
ports:
|
||||
- 21117:21117
|
||||
- 21119:21119
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.rustdesk-rtr.entrypoints=web-secure"
|
||||
- "traefik.http.routers.rustdesk-rtr.rule=Host(`rustdesk.$DOMAINNAME`)"
|
||||
- "traefik.http.routers.rustdesk-rtr.tls=true"
|
||||
- "traefik.http.routers.rustdesk-rtr.service=rustdesk-svc"
|
||||
- "traefik.http.services.rustdesk-svc.loadbalancer.server.port=21117"
|
||||
#+end_src
|
||||
|
||||
** =dotfiles= - Dotfiles ([[https://git.tdehaeze.xyz/tdehaeze/literate-dotfiles][link]])
|
||||
#+begin_src yaml
|
||||
dotfiles:
|
||||
container_name: dotfiles
|
||||
image: abiosoft/caddy:1.0.3-no-stats
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- t2_proxy
|
||||
environment:
|
||||
- PUID=$PUID
|
||||
- PGID=$PGID
|
||||
- TZ=$TZ
|
||||
- PLUGINS=git
|
||||
volumes:
|
||||
- $CONFIGDIR/dotfiles/Caddyfile:/etc/Caddyfile
|
||||
- $CONFIGDIR/dotfiles/www:/srv/www
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.dotfiles-rtr.entrypoints=web-secure"
|
||||
- "traefik.http.routers.dotfiles-rtr.rule=Host(`dotfiles.$DOMAINNAME`)"
|
||||
- "traefik.http.routers.dotfiles-rtr.tls=true"
|
||||
- "traefik.http.routers.dotfiles-rtr.service=dotfiles-svc"
|
||||
- "traefik.http.services.dotfiles-svc.loadbalancer.server.port=2015"
|
||||
logging: *default-logging
|
||||
#+end_src
|
||||
|
||||
=Caddyfile=
|
||||
#+begin_src conf :tangle /ssh:thomas@homelab:/home/thomas/docker/config/dotfiles/Caddyfile
|
||||
0.0.0.0:2015 {
|
||||
root /srv/www/docs/
|
||||
|
||||
git {
|
||||
repo https://git.tdehaeze.xyz/tdehaeze/literate-dotfiles
|
||||
path /srv/www/
|
||||
interval -1
|
||||
hook /literate-dotfiles/webhook QHZgAKjD8q2v54Ru
|
||||
}
|
||||
}
|
||||
#+end_src
|
||||
|
||||
** =ygege= ([[https://github.com/UwUDev/ygege][link]])
|
||||
#+begin_src yaml
|
||||
ygege:
|
||||
|
||||
@@ -185,6 +185,61 @@ Expunge Near
|
||||
Sync Pull
|
||||
#+END_SRC
|
||||
|
||||
** Mailbox Account
|
||||
#+BEGIN_SRC conf
|
||||
IMAPAccount mailbox
|
||||
Host imap.mailbox.org
|
||||
User thomas@tdehaeze.xyz
|
||||
PassCmd "pass email/thomas@tdehaeze.xyz"
|
||||
TLSType IMAPS
|
||||
AuthMechs LOGIN
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
IMAPStore mailbox-remote
|
||||
Account mailbox
|
||||
|
||||
MaildirStore mailbox-local
|
||||
Path ~/.local/share/mails/mailbox/
|
||||
Inbox ~/.local/share/mails/mailbox/Inbox
|
||||
|
||||
Channel mailbox-Home
|
||||
Far :mailbox-remote:INBOX
|
||||
Near :mailbox-local:Inbox
|
||||
|
||||
Channel mailbox-Drafts
|
||||
Far :mailbox-remote:Drafts
|
||||
Near :mailbox-local:Drafts
|
||||
|
||||
Channel mailbox-Archive
|
||||
Far :mailbox-remote:Archive
|
||||
Near :mailbox-local:Archive
|
||||
|
||||
Channel mailbox-Sent
|
||||
Far :mailbox-remote:Sent
|
||||
Near :mailbox-local:Sent
|
||||
|
||||
Channel mailbox-Trash
|
||||
Far :mailbox-remote:Trash
|
||||
Near :mailbox-local:Trash
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
Channel mailbox
|
||||
Far :mailbox-remote:
|
||||
Near :mailbox-local:
|
||||
#+END_SRC
|
||||
|
||||
For doing a quick sync of just the INBOX with =mbsync mailbox-download=.
|
||||
#+BEGIN_SRC conf
|
||||
Channel mailbox-download
|
||||
Far :mailbox-remote:INBOX
|
||||
Near :mailbox-local:Inbox
|
||||
Create Near
|
||||
Expunge Near
|
||||
Sync Pull
|
||||
#+END_SRC
|
||||
|
||||
** ESRF Account
|
||||
#+BEGIN_SRC conf
|
||||
IMAPAccount esrf
|
||||
@@ -269,6 +324,17 @@ passwordeval "pass email/dehaeze.thomas@gmail.com"
|
||||
# proxy_port 8080
|
||||
#+END_SRC
|
||||
|
||||
** Mailbox Account
|
||||
#+BEGIN_SRC conf
|
||||
account mailbox
|
||||
host smtp.mailbox.org
|
||||
port 587
|
||||
protocol smtp
|
||||
from thomas@tdehaeze.xyz
|
||||
user thomas@tdehaeze.xyz
|
||||
passwordeval "pass email/thomas@tdehaeze.xyz"
|
||||
#+END_SRC
|
||||
|
||||
** ESRF Account
|
||||
#+BEGIN_SRC conf
|
||||
account esrf
|
||||
@@ -1031,9 +1097,11 @@ set from = "thomas.dehaeze@esrf.fr"
|
||||
|
||||
folder-hook gmail/* source $HOME/.config/neomutt/accounts/gmail
|
||||
folder-hook esrf/* source $HOME/.config/neomutt/accounts/esrf
|
||||
folder-hook mailbox/* source $HOME/.config/neomutt/accounts/mailbox
|
||||
|
||||
macro index,pager ge "<change-folder>+esrf/Inbox<enter>" "go to inbox"
|
||||
macro index,pager gm "<change-folder>+gmail/Inbox<enter>" "go to inbox"
|
||||
macro index,pager gb "<change-folder>+mailbox/Inbox<enter>" "go to inbox"
|
||||
#+END_SRC
|
||||
|
||||
*** Gmail
|
||||
@@ -1067,6 +1135,36 @@ This empty code block is used to add a new line after signature
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/gmail.signature :comments none :padline no
|
||||
#+end_src
|
||||
|
||||
*** Mailbox
|
||||
**** Configuration
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/mailbox :comments none
|
||||
set from = "thomas@tdehaeze.xyz"
|
||||
set sendmail = "$HOME/.config/neomutt/bin/send_mail.sh mailbox"
|
||||
|
||||
# Other special folders.
|
||||
set mbox = "+mailbox/Archive"
|
||||
set record = "+mailbox/Sent"
|
||||
set postponed = "+mailbox/Drafts"
|
||||
|
||||
set signature = "$HOME/.config/neomutt/accounts/mailbox.signature"
|
||||
|
||||
macro index,pager d \
|
||||
"<save-message>+mailbox/Archive<enter>" \
|
||||
"Move message to the Archive"
|
||||
|
||||
macro index,pager D \
|
||||
"<save-message>+mailbox/Trash<enter>" \
|
||||
"Move message to the Trash"
|
||||
#+end_src
|
||||
|
||||
**** Signature
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/mailbox.signature :comments none :padline no
|
||||
Thomas DEHAEZE
|
||||
#+end_src
|
||||
This empty code block is used to add a new line after signature
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/mailbox.signature :comments none :padline no
|
||||
#+end_src
|
||||
|
||||
*** ESRF
|
||||
**** Configuration
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/esrf :comments none
|
||||
@@ -1257,6 +1355,12 @@ named-mailboxes " Sent" =gmail/Sent
|
||||
named-mailboxes " Drafts" =gmail/Drafts
|
||||
named-mailboxes " Archive" =gmail/Archive
|
||||
named-mailboxes " Trash" =gmail/Trash
|
||||
named-mailboxes " MAILBOX" =empty/mailbox
|
||||
named-mailboxes " Inbox" =mailbox/Inbox
|
||||
named-mailboxes " Sent" =mailbox/Sent
|
||||
named-mailboxes " Drafts" =mailbox/Drafts
|
||||
named-mailboxes " Archive" =mailbox/Archive
|
||||
named-mailboxes " Trash" =mailbox/Trash
|
||||
named-mailboxes " ESRF" =empty/esrf
|
||||
named-mailboxes " Inbox" =esrf/Inbox
|
||||
named-mailboxes " Sent" =esrf/Sent
|
||||
|
||||
+1
-1
@@ -420,7 +420,7 @@ config.bind(',q', 'QRcode')
|
||||
** Create a new password
|
||||
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/add-passowrd.sh
|
||||
url=$(echo "$QUTE_URL" | awk -F[/:] '{print $4}' | grep -oP '[\w-]+\.[\w-]+$' | rofi -i -p "URL" -dmenu -lines 1)
|
||||
username=$(echo -e "dehaeze.thomas@gmail.com\nthomas.dehaeze@esrf.fr\ntdehaeze" | rofi -p "Username" -dmenu -lines 5)
|
||||
username=$(echo -e "thomas@tdehaeze.xyz\ndehaeze.thomas@gmail.com\nthomas.dehaeze@esrf.fr\ntdehaeze" | rofi -p "Username" -dmenu -lines 5)
|
||||
password=$(rofi -p "Password" -dmenu -password -lines 1)
|
||||
|
||||
if [ -z "$url" ] || [ -z "$username" ] || [ -z "$password" ]; then
|
||||
|
||||
@@ -8,3 +8,17 @@ paru -S --needed --noconfirm \
|
||||
neomutt \
|
||||
mu \
|
||||
lynx urlview
|
||||
|
||||
echo "==> Tangling mail.org"
|
||||
emacsclient -e '(org-babel-tangle-file "/home/thomas/.config/literate-dotfiles/mail.org")'
|
||||
|
||||
echo "==> Creating mail directories"
|
||||
mkdir -p ~/.local/share/mails/{gmail,esrf,search,empty}
|
||||
mkdir -p ~/.local/share/mails/gmail/{Inbox,Sent,Drafts,Archive,Trash}
|
||||
mkdir -p ~/.local/share/mails/esrf/{Inbox,Sent,Drafts,Archive,Trash}
|
||||
mkdir -p ~/.local/share/mails/search/{cur,new,tmp}
|
||||
mkdir -p ~/.local/share/mails/empty/gmail/{cur,new,tmp}
|
||||
mkdir -p ~/.local/share/mails/empty/esrf/{cur,new,tmp}
|
||||
|
||||
echo "==> Getting all the emails"
|
||||
mbsync -a
|
||||
|
||||
+5
-3
@@ -220,18 +220,20 @@ done
|
||||
|
||||
# Count number of new mails before retreiving mails
|
||||
gmail_old="$(ls ~/.local/share/mails/gmail/Inbox/new | wc -l)"
|
||||
mailbox_old="$(ls ~/.local/share/mails/mailbox/Inbox/new | wc -l)"
|
||||
esrf_old="$(ls ~/.local/share/mails/esrf/Inbox/new | wc -l)"
|
||||
|
||||
# Retreive mails
|
||||
mbsync -c /home/thomas/.config/isync/mbsyncrc $opt_all $opt_verbose gmail-Home esrf-Home 2>/tmp/mbsync.log
|
||||
mbsync -c /home/thomas/.config/isync/mbsyncrc $opt_all $opt_verbose gmail-Home mailbox-Home esrf-Home 2>/tmp/mbsync.log
|
||||
|
||||
# Count number of new mails after retreiving mails
|
||||
gmail_new="$(ls ~/.local/share/mails/gmail/Inbox/new | wc -l)"
|
||||
mailbox_new="$(ls ~/.local/share/mails/mailbox/Inbox/new | wc -l)"
|
||||
esrf_new="$(ls ~/.local/share/mails/esrf/Inbox/new | wc -l)"
|
||||
|
||||
# Notification if there are new retreive mails
|
||||
if [ "$(($esrf_new+$gmail_new))" -gt "$(($esrf_old+$gmail_old))" ]; then
|
||||
dunstify --replace=98465 'Mails ' "$(($gmail_new+$esrf_new)) new mail(s)"
|
||||
if [ "$(($esrf_new+$mailbox_new+$gmail_new))" -gt "$(($esrf_old+$mailbox_old+$gmail_old))" ]; then
|
||||
dunstify --replace=98465 'Mails ' "$(($gmail_new+$mailbox_new+$esrf_new)) new mail(s)"
|
||||
fi
|
||||
|
||||
# Indexation and Tags
|
||||
|
||||
Reference in New Issue
Block a user