From 671dda4f704a57061a6e4142a8a1afa92e8d423c Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Sat, 18 May 2024 07:04:28 +0000 Subject: [PATCH] Latest --- home/dot_local/etc/cloudflared/config.yml.tmpl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/home/dot_local/etc/cloudflared/config.yml.tmpl b/home/dot_local/etc/cloudflared/config.yml.tmpl index 5c81f97b..d58e4eef 100644 --- a/home/dot_local/etc/cloudflared/config.yml.tmpl +++ b/home/dot_local/etc/cloudflared/config.yml.tmpl @@ -1,22 +1,21 @@ -{{- $hostname := (output "echo" .host.hostname "|" "tr" "'[:upper:]'" "'[:lower:]'") -}} --- -tunnel: {{ if eq .host.qubes true }}qube{{ else }}host{{ end }}-{{ $hostname }} +tunnel: {{ if eq .host.qubes true }}qube{{ else }}host{{ end }}-{{ .host.hostname | lower }} credentials-file: /usr/local/etc/cloudflared/credentials.json warp-routing: enabled: true ingress: - - hostname: test-{{ $hostname }}.{{ .host.domain }} + - hostname: test-{{ .host.hostname | lower }}.{{ .host.domain | lower }} service: hello_world - - hostname: ssh-{{ $hostname }}.{{ .host.domain }} + - hostname: ssh-{{ .host.hostname | lower }}.{{ .host.domain | lower }} service: ssh://localhost:{{ .host.ssh.port }} - - hostname: netdata-{{ $hostname }}.{{ .host.domain }} + - hostname: netdata-{{ .host.hostname | lower }}.{{ .host.domain | lower }} service: http://localhost:19999 - service: http_status:404 # - hostname: {{ .host.domain }} # service: https://localhost:8014 - # - hostname: rdp-{{ $hostname }}.{{ .host.domain }} + # - hostname: rdp-{{ .host.hostname }}.{{ .host.domain }} # service: rdp://localhost:3389 # - hostname: samba.{{ .host.domain }} # service: tcp://localhost:8445