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

51 lines
1.9 KiB
Cheetah
Raw Normal View History

2023-07-09 22:46:56 -07:00
---
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:
2024-05-17 20:53:05 -07:00
enabled: true
2023-07-09 22:46:56 -07:00
ingress:
2024-05-17 20:53:05 -07:00
- hostname: test-{{ .host.hostname }}.{{ .host.domain }}
2023-07-09 22:46:56 -07:00
service: hello_world
2024-05-17 20:53:05 -07:00
- hostname: ssh-{{ .host.hostname }}.{{ .host.domain }}
2023-07-09 22:46:56 -07:00
service: ssh://localhost:{{ .host.ssh.port }}
2024-05-17 20:53:05 -07:00
- hostname: netdata-{{ .host.hostname }}.{{ .host.domain }}
2024-05-09 19:53:38 -07:00
service: http://localhost:19999
2024-05-17 20:53:05 -07:00
- service: http_status:404
# - hostname: {{ .host.domain }}
# service: https://localhost:8014
# - hostname: rdp-{{ .host.hostname }}.{{ .host.domain }}
# service: rdp://localhost:3389
# - hostname: samba.{{ .host.domain }}
# service: tcp://localhost:8445
# - hostname: sftp.{{ .host.domain }}
# service: tcp://localhost:2022
# - hostname: sftpgo.{{ .host.domain }}
# service: tcp://localhost:11101
# - hostname: vnc.{{ .host.domain }}
# service: tcp://localhost:5901
# - hostname: dagu.{{ .host.domain }}
# service: tcp://localhost:8321
# - hostname: rsyslog.{{ .host.domain }}
# service: tcp://localhost:514
# - hostname: rundeck.{{ .host.domain }}
# 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:
2024-05-17 20:53:05 -07:00
# - hostname: {{ .host.domain }}
2023-07-09 22:46:56 -07:00
# 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