Add dotfiles caddy configuration
This commit is contained in:
parent
a1f48930a8
commit
e467c5aab2
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2021-01-08 ven. 01:45 -->
|
||||
<!-- 2021-01-11 lun. 14:50 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Home Server</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
@ -48,7 +48,7 @@
|
||||
<li><a href="#orgab9cc12">Update System/Packages</a></li>
|
||||
<li><a href="#orgbd671d1">Docker Commands</a></li>
|
||||
<li><a href="#orgc233df6">Add User and Password for Basic Authentication</a></li>
|
||||
<li><a href="#org42ad31f">Snapraid</a></li>
|
||||
<li><a href="#orge8a6010">Snapraid</a></li>
|
||||
<li><a href="#orged978b5">Restore Online backup with <code>restic</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@ -66,7 +66,7 @@
|
||||
<li><a href="#orgb2219b0"><code>rclone.conf</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orge8a6010">Snapraid</a>
|
||||
<li><a href="#org0fd5b56">Snapraid</a>
|
||||
<ul>
|
||||
<li><a href="#org243fb45"><code>snapraid.conf</code></a></li>
|
||||
<li><a href="#orgf79de7e"><code>snapraid-runner.conf</code></a></li>
|
||||
@ -75,11 +75,16 @@
|
||||
<li><a href="#org71bbad9">Portainer</a></li>
|
||||
<li><a href="#org2690f5c">Wireguard</a></li>
|
||||
<li><a href="#orgfce2f91">Gitea</a></li>
|
||||
<li><a href="#org8d116c0">Caddy</a>
|
||||
<li><a href="#org5f91f36">Caddy - Research Pages</a>
|
||||
<ul>
|
||||
<li><a href="#org0b6782a"><code>Caddyfile</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org2a95802">Caddy - Dotfiles</a>
|
||||
<ul>
|
||||
<li><a href="#orga8fcffa"><code>Caddyfile</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orga6fbf52">Hugo</a></li>
|
||||
<li><a href="#org52d5b6f">Syncthing</a></li>
|
||||
<li><a href="#org18acd57">Miniflux</a></li>
|
||||
@ -523,9 +528,9 @@ This will delete all unused images, volumes and networks.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org42ad31f" class="outline-3">
|
||||
<h3 id="org42ad31f">Snapraid</h3>
|
||||
<div class="outline-text-3" id="text-org42ad31f">
|
||||
<div id="outline-container-orge8a6010" class="outline-3">
|
||||
<h3 id="orge8a6010">Snapraid</h3>
|
||||
<div class="outline-text-3" id="text-orge8a6010">
|
||||
<p>
|
||||
To see all files “backed up” by snapraid, use:
|
||||
</p>
|
||||
@ -939,9 +944,9 @@ You can use <code>latest</code> instead of the ID.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orge8a6010" class="outline-3">
|
||||
<h3 id="orge8a6010">Snapraid</h3>
|
||||
<div class="outline-text-3" id="text-orge8a6010">
|
||||
<div id="outline-container-org0fd5b56" class="outline-3">
|
||||
<h3 id="org0fd5b56">Snapraid</h3>
|
||||
<div class="outline-text-3" id="text-org0fd5b56">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-yaml"> <span class="org-variable-name">snapraid</span>:
|
||||
<span class="org-variable-name">container_name</span>: snapraid
|
||||
@ -1185,9 +1190,9 @@ exclude .AppleDB
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8d116c0" class="outline-3">
|
||||
<h3 id="org8d116c0">Caddy</h3>
|
||||
<div class="outline-text-3" id="text-org8d116c0">
|
||||
<div id="outline-container-org5f91f36" class="outline-3">
|
||||
<h3 id="org5f91f36">Caddy - Research Pages</h3>
|
||||
<div class="outline-text-3" id="text-org5f91f36">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-yaml"> <span class="org-variable-name">caddy</span>:
|
||||
<span class="org-variable-name">container_name</span>: caddy
|
||||
@ -1236,6 +1241,55 @@ exclude .AppleDB
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2a95802" class="outline-3">
|
||||
<h3 id="org2a95802">Caddy - Dotfiles</h3>
|
||||
<div class="outline-text-3" id="text-org2a95802">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-yaml"> <span class="org-variable-name">dotfiles</span>:
|
||||
<span class="org-variable-name">container_name</span>: dotfiles
|
||||
<span class="org-variable-name">image</span>: abiosoft/caddy:1.0.3-no-stats
|
||||
<span class="org-variable-name">restart</span>: unless-stopped
|
||||
<span class="org-variable-name">networks</span>:
|
||||
- t2_proxy
|
||||
<span class="org-variable-name">environment</span>:
|
||||
- PUID=$PUID
|
||||
- PGID=$PGID
|
||||
- TZ=$TZ
|
||||
- PLUGINS=git
|
||||
<span class="org-variable-name">volumes</span>:
|
||||
- $CONFIGDIR/dotfiles/Caddyfile:/etc/Caddyfile
|
||||
- $CONFIGDIR/dotfiles/www:/srv/www
|
||||
<span class="org-variable-name">labels</span>:
|
||||
- <span class="org-string">"traefik.enable=true"</span>
|
||||
- <span class="org-string">"traefik.http.routers.dotfiles-rtr.entrypoints=https"</span>
|
||||
- <span class="org-string">"traefik.http.routers.dotfiles-rtr.rule=Host(`dotfiles.$DOMAINNAME`)"</span>
|
||||
- <span class="org-string">"traefik.http.routers.dotfiles-rtr.tls=true"</span>
|
||||
- <span class="org-string">"traefik.http.routers.dotfiles-rtr.service=dotfiles-svc"</span>
|
||||
- <span class="org-string">"traefik.http.services.dotfiles-svc.loadbalancer.server.port=2015"</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga8fcffa" class="outline-4">
|
||||
<h4 id="orga8fcffa"><code>Caddyfile</code></h4>
|
||||
<div class="outline-text-4" id="text-orga8fcffa">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-conf">0.0.0.0:<span class="org-highlight-numbers-number">2015</span> {
|
||||
root /srv/www/docs/
|
||||
|
||||
<span class="org-type">git</span> {
|
||||
repo https://git.tdehaeze.xyz/tdehaeze/literate-dotfiles
|
||||
path /srv/www/
|
||||
interval -1
|
||||
hook /literate-dotfiles/webhook QHZgAKjD8q2v54Ru
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga6fbf52" class="outline-3">
|
||||
<h3 id="orga6fbf52">Hugo</h3>
|
||||
<div class="outline-text-3" id="text-orga6fbf52">
|
||||
@ -1754,7 +1808,7 @@ Type <code>crontab -e</code> and add this line:
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2021-01-08 ven. 01:45</p>
|
||||
<p class="date">Created: 2021-01-11 lun. 14:50</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
41
nas.org
41
nas.org
@ -768,7 +768,7 @@ older-than = 10
|
||||
- $CONFIGDIR/mariadb:/var/lib/mysql
|
||||
#+end_src
|
||||
|
||||
** Caddy
|
||||
** Caddy - Research Pages
|
||||
#+begin_src yaml
|
||||
caddy:
|
||||
container_name: caddy
|
||||
@ -809,6 +809,45 @@ older-than = 10
|
||||
}
|
||||
#+end_src
|
||||
|
||||
** Caddy - Dotfiles
|
||||
#+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=https"
|
||||
- "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"
|
||||
#+end_src
|
||||
|
||||
*** =Caddyfile=
|
||||
#+begin_src conf :tangle /ssh:thomas@grenoble:~/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
|
||||
|
||||
** Hugo
|
||||
#+begin_src yaml
|
||||
hugo:
|
||||
|
Loading…
Reference in New Issue
Block a user