This commit is contained in:
admin 2024-03-25 00:18:55 +01:00
parent 2730b695e7
commit de609b4e69
4 changed files with 32 additions and 13 deletions

View file

@ -112,10 +112,12 @@
# wget
cloudflared
filebrowser
dufs
git
helix
nil
starship
tailscale
];
programs.fish= {

View file

@ -18,6 +18,20 @@ in
};
};
systemd.services.tailBrowser = with pkgs; {
enable = true;
description = "serve via tailscale filebrowser";
wantedBy = [ "multi-user.target" ];
unitConfig = {
After="filebrowser.target";
};
serviceConfig = {
ExecStart = "${tailscale}/bin/tailscale serve --http 80 localhost:8080";
# User= "jellyfin";
Type= "simple";
};
};
services.nginx.virtualHosts.${domain} = {
locations."/" = {

View file

@ -11,11 +11,11 @@
./audiobooks.nix
./tunnel.nix
./forgejo.nix
# ./nextcloud.nix
./nextcloud.nix
./jellyfin.nix
./filebrowser.nix
./tail.nix
# ./matrix.nix
# ./tail.nix
# ./coturn.nix
];

View file

@ -1,16 +1,19 @@
{...}:
{
services.nginx.enable = true;
services.cloudflared = {
enable = true;
tunnels = {
"tulpan" = {
credentialsFile = "/etc/nixos/.secrets/tulpan-tunnel.json";
default = "http_status:404";
ingress = {
"*.sondell.org" = "http://localhost:80";
services.nginx = {
enable = true;
clientMaxBodySize = "10g";
};
services.cloudflared = {
enable = true;
tunnels = {
"tulpan" = {
credentialsFile = "/etc/nixos/.secrets/tulpan-tunnel.json";
default = "http_status:404";
ingress = {
"*.sondell.org" = "http://localhost:80";
};
};
};
};
};
}