push
This commit is contained in:
@@ -1,36 +1,30 @@
|
||||
/*
|
||||
{
|
||||
den.aspects.cloudflared = {
|
||||
nixos = { pkgs, ...}: let
|
||||
TUNNEL_UUID = "4118935e-359b-4dd2-95bd-eb27f7b0c5bb";
|
||||
in {
|
||||
environment.systemPackages = [ pkgs.cloudflared ];
|
||||
{ den, ... }: let
|
||||
tunnel_uuid = "4118935e-359b-4dd2-95bd-eb27f7b0c5bb";
|
||||
domain = "bug.tools";
|
||||
creds = "/home/bug/.cloudflared/${tunnel_uuid}.json";
|
||||
|
||||
environment.etc."cloudflared/${TUNNEL_UUID}.json".source = "/home/bug/.cloudflared/${TUNNEL_UUID}.json";
|
||||
tunnel = port: subdomain: { pkgs, ... }: {
|
||||
environment.systemPackages = [ pkgs.cloudflared ];
|
||||
|
||||
services.cloudflared = {
|
||||
enable = true;
|
||||
environment.etc."cloudflared/${tunnel_uuid}.json".source = creds;
|
||||
|
||||
tunnels."${TUNNEL_UUID}" = {
|
||||
credentialsFile = "/etc/cloudflared/${TUNNEL_UUID}.json";
|
||||
default = "http_status:404";
|
||||
services.cloudflared = {
|
||||
enable = true;
|
||||
|
||||
ingress = {
|
||||
"tvtun.bug.tools" = "http://127.0.0.1:3001";
|
||||
"search.bug.tools" = "http://127.0.0.1:8888";
|
||||
"files.bug.tools" = "http://127.0.0.1:3210";
|
||||
"tube.bug.tools" = "http://127.0.0.1:3030";
|
||||
"monitor.bug.tools" = "http://127.0.0.1:61208";
|
||||
"reddit.bug.tools" = "http://127.0.0.1:8975";
|
||||
#"matrix.bug.tools" = "http://127.0.0.1:8008";
|
||||
#"bug.tools" = "http://127.0.0.1:8080";
|
||||
"git.bug.tools" = "http://127.0.0.1:3000";
|
||||
};
|
||||
tunnels.${tunnel_uuid} = {
|
||||
credentialsFile = "/etc/cloudflared/${tunnel_uuid}.json";
|
||||
default = "http_status:404";
|
||||
|
||||
ingress = {
|
||||
"${subdomain}.${domain}" = "http://127.0.0.1:${toString port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
den.aspects.tunnel = port: subdomain: den.lib.parametric {
|
||||
includes = [
|
||||
(_: { nixos = tunnel port subdomain; })
|
||||
];
|
||||
};
|
||||
}
|
||||
*/
|
||||
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user