petalius: use wstunnel workaround
This commit is contained in:
parent
882db43696
commit
83b6967be6
15
petalius.nix
15
petalius.nix
@ -106,11 +106,24 @@
|
|||||||
publicKey = "ByLlJbevlTBooAo2RIZGGJvBHKqA9qiOpHBvR5yuJX4=";
|
publicKey = "ByLlJbevlTBooAo2RIZGGJvBHKqA9qiOpHBvR5yuJX4=";
|
||||||
allowedIPs = ["10.56.0.0/14" "10.60.1.1"];
|
allowedIPs = ["10.56.0.0/14" "10.60.1.1"];
|
||||||
# endpoint = "htdf-gw.gebner.org:35869";
|
# endpoint = "htdf-gw.gebner.org:35869";
|
||||||
endpoint = "80.109.2.154:35869";
|
# endpoint = "80.109.2.154:35869";
|
||||||
|
endpoint = "127.0.0.1:35869";
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
systemd.services.wireguard-wg0.wantedBy = pkgs.lib.mkOverride 10 [];
|
systemd.services.wireguard-wg0.wantedBy = pkgs.lib.mkOverride 10 [];
|
||||||
|
|
||||||
|
systemd.services.wstunnel = {
|
||||||
|
path = with pkgs; [
|
||||||
|
(haskell.lib.justStaticExecutables
|
||||||
|
(haskellPackages.callPackage ./pkgs/wstunnel.nix {}))
|
||||||
|
];
|
||||||
|
wantedBy = [ "wireguard-wg0.service" ];
|
||||||
|
after = [ "network.target" ];
|
||||||
|
script = ''
|
||||||
|
wstunnel -L 35869:htdf-gw.gebner.org:35869 -u wss://gebner.org
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
services.resolved = {
|
services.resolved = {
|
||||||
domains = [];
|
domains = [];
|
||||||
enable = true;
|
enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user