Simplify cloudflared service to minimal working configuration
This commit is contained in:
parent
12b1281e88
commit
f3b2675677
1 changed files with 10 additions and 9 deletions
|
|
@ -1,20 +1,21 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.cloudflared ];
|
||||
|
||||
systemd.services.cloudflared-warp-ssh = {
|
||||
description = "Cloudflared SSH tunnel to warp.ftl.host → localhost:22";
|
||||
systemd.services.cloudflared-warp = {
|
||||
description = "Cloudflared TCP tunnel for SSH";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.cloudflared}/bin/cloudflared access tcp --hostname warp.ftl.host --url localhost:22 --port 4401 --logfile /var/log/cloudflared-warp.log";
|
||||
ExecStart = "${pkgs.cloudflared}/bin/cloudflared access tcp --hostname warp.ftl.host --url localhost:22 --port 4401";
|
||||
Restart = "always";
|
||||
User = "root";
|
||||
RestartSec = "5s";
|
||||
Type = "exec";
|
||||
StandardOutput = "journal";
|
||||
StandardError = "journal";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/log 0755 root root -"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue