From 1c4563bf1a277c1287d590fb3608f5d610358813 Mon Sep 17 00:00:00 2001
From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com>
Date: Mon, 10 Jul 2023 07:54:03 +0000
Subject: [PATCH] Latest
---
home/Library/LaunchDaemons/com.cloudflare.warp.plist.tmpl | 2 +-
home/dot_local/etc/cloudflared/config.yaml.tmpl | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/home/Library/LaunchDaemons/com.cloudflare.warp.plist.tmpl b/home/Library/LaunchDaemons/com.cloudflare.warp.plist.tmpl
index 586f3e83..8d665627 100644
--- a/home/Library/LaunchDaemons/com.cloudflare.warp.plist.tmpl
+++ b/home/Library/LaunchDaemons/com.cloudflare.warp.plist.tmpl
@@ -8,7 +8,7 @@
/usr/local/bin/bash
-c
- cp -f "{{ .data.user.home }}/Library/Managed Preferences/com.cloudflare.warp.plist" "/Library/Managed Preferences/com.cloudflare.warp.plist" && plutil -convert binary1 "/Library/Managed Preferences/com.cloudflare.warp.plist"
+ cp -f "{{ .host.home }}/Library/Managed Preferences/com.cloudflare.warp.plist" "/Library/Managed Preferences/com.cloudflare.warp.plist" && plutil -convert binary1 "/Library/Managed Preferences/com.cloudflare.warp.plist"
StartCalendarInterval
diff --git a/home/dot_local/etc/cloudflared/config.yaml.tmpl b/home/dot_local/etc/cloudflared/config.yaml.tmpl
index 1f7bd831..05d625ea 100644
--- a/home/dot_local/etc/cloudflared/config.yaml.tmpl
+++ b/home/dot_local/etc/cloudflared/config.yaml.tmpl
@@ -1,9 +1,9 @@
-{{- $baseDomain := (join (join (.host.hostname ".") .host.domain)) -}}
+{{- $baseDomain := (join (join .host.hostname ".") .host.domain) -}}
{{- if .host.qubes -}}
-{{- $baseDomain := (join (join (.host.hostname "-qube.") .host.domain)) -}}
+{{- $baseDomain := (join (join .host.hostname "-qube.") .host.domain) -}}
{{- end -}}
---
-tunnel: {{ if .host.qubes }}qube{{ else }}host{{ end }}-{{ .host.hostname }}
+tunnel: {{ if eq .host.qubes true }}qube{{ else }}host{{ end }}-{{ .host.hostname }}
credentials-file: /usr/local/etc/cloudflared/credentials.json
warp-routing: