瀏覽代碼

[bastion] Update Caddyfile with what's currently in prod

Colin Powell 8 月之前
父節點
當前提交
51af3bdc90
共有 3 個文件被更改,包括 76 次插入28 次删除
  1. 20 0
      README.md
  2. 8 6
      lab/ansible/hosts
  3. 48 22
      lab/ansible/roles/caddy/files/Caddyfile

+ 20 - 0
README.md

@@ -0,0 +1,20 @@
+Homelab
+=======
+
+Services
+--------
+
+* Database - Postgres
+* Code repositroy - Gitea
+* Webcams - ustreamer
+* Movie/TV - Jellyfin
+* Photos - Photolab
+* Music - Mopidy/Navidrome/Snapcast/Icecast
+* Search - SearxNG
+* S3 - Minio
+* Podcasts - podgrab
+* RSS - miniflux
+* Recipes - Tandoor
+* Ebooks - Calbre Web
+* CI - Drone.io
+* Runnning - Fittrakee

+ 8 - 6
lab/ansible/hosts

@@ -14,18 +14,17 @@ gogs1.local
 vrobbler1.local
 snapcast1.local
 mopidy1.local
+miniflux0.local
+podgrab0.local
+emus0.local
 
 calibre1.local
 devpi0.local
-emus0.local
 fifttrackee0.local
 icecast0.local
 linkace1.local
-miniflux1.local
 muchsync1.local
 paperless1.local
-photoview1.local
-podgrab1.local
 syncthing.local
 wger0.local
 
@@ -115,7 +114,7 @@ searx1.local
 excalidraw1.local
 
 [rss]
-miniflux1.local
+miniflux0.local
 
 [tor]
 tor1.local
@@ -141,11 +140,14 @@ calibre1.local
 [reading]
 bookwyrm0.local
 
+[emus]
+emus0.local
+
 [photos]
 photoview1.local
 
 [podcasts]
-podgrab1.local
+podgrab0.local
 
 [logging]
 logstash1.local

+ 48 - 22
lab/ansible/roles/caddy/files/Caddyfile

@@ -1,8 +1,13 @@
-db.unbl.ink {
-    reverse_proxy db.service:5050
+log {
+      output file /var/log/caddy/access.log {
+                        roll_size 1gb
+                        roll_keep 2
+                        roll_keep_for 720h
+                }
+        }
 }
-db.unbl.ink:5432 {
-    reverse_proxy db.service:5432
+archive.lab.unbl.ink {
+    reverse_proxy archive.service:8000
 }
 code.unbl.ink {
     reverse_proxy git.service:3001
@@ -10,25 +15,42 @@ code.unbl.ink {
 code.unbl.ink:222 {
     reverse_proxy git.service:3001
 }
+db.lab.unbl.ink {
+    reverse_proxy db.service:5050
+}
+db.lab.unbl.ink:5432 {
+    reverse_proxy db.service:5432
+}
 ci.lab.unbl.ink {
     reverse_proxy drone.service
 }
-west.cam.timberwyckfarm.com {
-    reverse_proxy webcams.service:8080
+
+yard.see.unbl.ink {
+    reverse_proxy laptop.service:8083
 }
-east.cam.timberwyckfarm.com {
-    reverse_proxy webcams.service:8081
+board.see.unbl.ink {
+    reverse_proxy laptop.service:8082
 }
-basement.cam.timberwyckfarm.com {
-    reverse_proxy webcams.service:8082
+basement1.see.unbl.ink {
+    reverse_proxy laptop.service:8081
 }
-goat.cam.timberwyckfarm.com {
-    reverse_proxy https://192.168.1.228 {
+basement2.see.unbl.ink {
+    reverse_proxy 192.168.40.20:8081
+}
+dining.see.unbl.ink {
+    reverse_proxy 192.168.40.208:8082
+}
+mail.see.unbl.ink {
+    reverse_proxy 192.168.40.208:8081
+}
+move.see.timberwyckfarm.com {
+    reverse_proxy https://192.168.40.228 {
         transport http {
             tls_insecure_skip_verify
         }
     }
 }
+
 jelly.unbl.ink {
     reverse_proxy jellyfin.service:8096
 }
@@ -69,33 +91,31 @@ vrobbler.lab.unbl.ink {
 rss.lab.unbl.ink {
     reverse_proxy rss.service:8002
 }
-music.unbl.ink {
+music.lab.unbl.ink {
     reverse_proxy navidrome.service:4533
 }
 wx.unbl.ink {
     reverse_proxy wx.service
     rewrite * /wx{uri}
 }
-paper.unbl.ink {
-    reverse_proxy paperless.service
+paper.lab.unbl.ink {
+    reverse_proxy paper.service:8090
 }
 notify.unbl.ink {
     reverse_proxy ntfy.service
 }
-pypi.unbl.ink {
-    reverse_proxy devpi.service:3141
-}
 pass.unbl.ink {
     reverse_proxy pass.service
 }
-fit.lab.unbl.ink {
-    reverse_proxy wger.service
+photos.unbl.ink {
+    reverse_proxy photos.service:2342
 }
+
 links.lab.unbl.ink {
     reverse_proxy links.service
 }
 emus.lab.unbl.ink {
-    reverse_proxy emus.service:8000
+    reverse_proxy emus.service
 }
 library.lab.unbl.ink {
     reverse_proxy calibre.service:8083
@@ -103,6 +123,12 @@ library.lab.unbl.ink {
 ko.lab.unbl.ink {
     reverse_proxy calibre.service:8037
 }
-run.unbl.ink {
+run.lab.unbl.ink {
     reverse_proxy fittrackee.service:8014
 }
+queue.lab.unbl.ink {
+    reverse_proxy mopidy.service:5680
+}
+stream.lab.unbl.ink {
+    reverse_proxy icecast.service:8010
+}