aboutsummaryrefslogtreecommitdiff
path: root/nix/machines/vm-synology/ingress.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/machines/vm-synology/ingress.nix')
-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";
+ };
+ };
+ };
+ };
+}