This commit is contained in:
Brian Zalewski 2024-05-18 07:04:28 +00:00
parent 8082a62378
commit 671dda4f70

View file

@ -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