aboutsummaryrefslogtreecommitdiff
path: root/nix/machines/vm-synology/ingress.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-07-06 12:48:10 -0700
committerFranck Cuny <franck@fcuny.net>2025-07-06 12:48:10 -0700
commit85a1c2c3b145d833bd83fa441fd54c5c7f2ffbd4 (patch)
tree6051b531876f3ef9fcc01b76a03d9440ff4599d7 /nix/machines/vm-synology/ingress.nix
parentvarious fixes for nix 25.05 (diff)
downloadinfra-85a1c2c3b145d833bd83fa441fd54c5c7f2ffbd4.tar.gz
add secrets and configurations for cloudflared
Diffstat (limited to '')
-rw-r--r--nix/machines/vm-synology/ingress.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nix/machines/vm-synology/ingress.nix b/nix/machines/vm-synology/ingress.nix
new file mode 100644
index 0000000..b6ae596
--- /dev/null
+++ b/nix/machines/vm-synology/ingress.nix
@@ -0,0 +1,16 @@
+{ config, ... }:
+{
+ services.cloudflared = {
+ enable = true;
+ certificateFile = config.age.secrets.cloudflared-cert.path;
+ tunnels = {
+ "cragmont" = {
+ credentialsFile = config.age.secrets.cloudflared-tunnel.path;
+ default = "http_status:404";
+ ingress = {
+ "git.fcuny.net".service = "ssh://127.0.0.1:22";
+ };
+ };
+ };
+ };
+}