tsuki/headscale: disable

This commit is contained in:
Oystein Kristoffer Tveit 2024-06-09 16:05:55 +02:00
parent 830e5477f3
commit e943f2fe5f
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 25 additions and 2 deletions

View File

@ -13,7 +13,7 @@ in {
};
services.headscale = {
enable = true;
enable = false;
port = 39304;

View File

@ -64,6 +64,20 @@
sha256 = "0hxqszqfzsbmgksfm6k0gp0hsx9k1gqx24gakxqv0391wl6fsky1";
};
# nonCFHost =
# subdomains: extraSettings: let
# settings = with keys.certificates; {
# useACMEHost = "nani.wtf";
# forceSSL = true;
# kTLS = true;
# };
# in
# nameValuePair "${head subdomains}.${head domains}" (recursiveUpdate settings extraSettings);
# nonCFProxy =
# subdomains: url: extraSettings:
# nonCFHost subdomains (recursiveUpdate { locations."/".proxyPass = url; } extraSettings);
host =
subdomains: extraSettings: let
settings = with keys.certificates; {
@ -155,7 +169,16 @@
(proxy ["map"] "http://dynmap" {})
(proxy ["osu"] "http://osuchan" {})
(proxy ["plex"] "http://plex" {})
(proxy ["vpn"] "http://headscale" enableWebsockets)
# (proxy ["vpn"] "http://headscale" {
# locations."/" = {
# proxyWebsockets = true;
# extraConfig = ''
# add_header Access-Control-Allow-Origin *;
# add_header Access-Control-Allow-Methods GET,HEAD,POST,OPTIONS;
# add_header Access-Control-Max-Age 86400;
# '';
# };
# })
(proxy ["yt"] "http://invidious" {})
(host ["h7x4-stickers"] {})