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