install.fairie/home/dot_local/etc/cloudflared/config.yml.tmpl

54 lines
1.9 KiB
Cheetah
Raw Normal View History

2023-07-10 00:54:03 -07:00
{{- $baseDomain := (join (join .host.hostname ".") .host.domain) -}}
2023-07-31 20:11:43 -07:00
{{- if eq .host.qubes true -}}
2023-07-10 00:54:03 -07:00
{{- $baseDomain := (join (join .host.hostname "-qube.") .host.domain) -}}
2023-07-09 22:46:56 -07:00
{{- end -}}
---
2023-07-10 00:54:03 -07:00
tunnel: {{ if eq .host.qubes true }}qube{{ else }}host{{ end }}-{{ .host.hostname }}
2023-07-09 22:46:56 -07:00
credentials-file: /usr/local/etc/cloudflared/credentials.json
warp-routing:
enabled: true
ingress:
- hostname: {{ $baseDomain }}
service: https://localhost:8014
- hostname: test.{{ $baseDomain }}
service: hello_world
- hostname: ssh.{{ $baseDomain }}
service: ssh://localhost:{{ .host.ssh.port }}
- hostname: rdp.{{ $baseDomain }}
service: rdp://localhost:3389
- hostname: samba.{{ $baseDomain }}
service: localhost:8445
2023-12-23 03:08:39 -08:00
- hostname: sftp.{{ $baseDomain }}
service: tcp://localhost:2022
2024-03-01 20:35:58 -08:00
- hostname: sftpgo.{{ $baseDomain }}
service: tcp://localhost:11101
2023-07-09 22:46:56 -07:00
- hostname: vnc.{{ $baseDomain }}
service: tcp://localhost:5901
- hostname: dagu.{{ $baseDomain }}
service: tcp://localhost:8321
- hostname: rsyslog.{{ $baseDomain }}
service: tcp://localhost:514
2024-01-02 17:40:12 -08:00
- hostname: netdata.{{ $baseDomain }}
service: https://localhost:19999
- hostname: rundeck.{{ $baseDomain }}
service: https://localhost:4440
- hostname: portainer.{{ .host.domain }}
service: https://localhost:9439
2023-07-14 22:28:48 -07:00
{{- if eq .host.softwareGroup "Kubernetes" }}
- hostname: k8s.{{ .host.domain }}
service: bastion
{{- end }}
2023-07-09 22:46:56 -07:00
# Example of an HTTP request over a Unix socket:
# - hostname: {{ $baseDomain }}
# service: unix:/home/production/echo.sock
# Tunnel the baked-in Hello World test app for testing purposes
# Rules can match the request's path to a regular expression:
# - hostname: static.example.com
# path: \.(jpg|png|css|js)$
# service: https://localhost:8001
# Rules can match the request's hostname to a wildcard character:
# - hostname: "*.example.com"
# service: https://localhost:8002
- service: http_status:404