Skip to content

Commit

Permalink
fix home server
Browse files Browse the repository at this point in the history
  • Loading branch information
augustfengd committed Oct 20, 2024
1 parent ec2f46a commit 5289a88
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
5 changes: 4 additions & 1 deletion cloud/home/services/pihole/cm.cue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ cm:
cname=syncthing.home.arpa,home.arpa
cname=traefik.home.arpa,home.arpa
"""
"custom.list": "192.168.0.254 home.arpa"
"custom.list": """
192.168.0.254 home.arpa
192.168.0.13 android.home.arpa
"""
}
}
4 changes: 2 additions & 2 deletions cloud/home/services/pihole/ingress.cue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ingressroute:
match: "Host(`\(fqdn)`)"
services: [{
name: "pihole"
port: 80
port: "web"
}]
}]
}
Expand All @@ -25,7 +25,7 @@ ingressrouteudp: manifests: [{
routes: [{
services: [{
name: "pihole"
port: 53
port: "dns"
}]
}]
}
Expand Down
8 changes: 4 additions & 4 deletions cloud/home/services/pihole/pihole.cue
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ deployment:
image: name: "pihole/pihole"
annotations: "cm": base64.Encode(null, yaml.Marshal(cm.pihole))
expose: {
ports: "web": 80
ports: "domain": 53
ports: "web": 80
ports: "dns": 53
}
mount: configmap: "pihole": {
"/etc/pihole/custom.list": "custom.list"
"/etc/dnsmasq.d/05-pihole-custom-cname.conf": "05-pihole-custom-cname.conf"
}
expose: protocol: "domain": "UDP"
env: WEBPASSWORD: value: ""
expose: protocol: "dns": "UDP"
env: WEBPASSWORD: value: ""
} & {
manifests: [
{
Expand Down
5 changes: 0 additions & 5 deletions cloud/home/services/pihole/pihole_tool.cue
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
package pihole

import (
"path"
"tool/http"
"tool/exec"

"github.com/augustfengd/augustfeng.app/cue.lib/tools:git"
"github.com/augustfengd/augustfeng.app/cue.lib/tools:kubectl"
)

Expand Down
2 changes: 1 addition & 1 deletion cue.lib/kubernetes/traefik.cue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ traefik: {
}]

if fqdn =~ ".home.arpa" {
spec: entrypoints: ["web"]
spec: entryPoints: ["web"]
}
spec: {
entryPoints: ["web"]
Expand Down

0 comments on commit 5289a88

Please sign in to comment.