cryptpad and copyparty
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 2m15s
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 2m15s
This commit is contained in:
parent
74754554e8
commit
4b2c7464f0
3 changed files with 25 additions and 0 deletions
|
|
@ -35,6 +35,8 @@ in {
|
||||||
dash = [
|
dash = [
|
||||||
[ "PocketID" "authentik" "https://auth.${domain}" "http://localhost:1411/" ]
|
[ "PocketID" "authentik" "https://auth.${domain}" "http://localhost:1411/" ]
|
||||||
[ "Forgejo" "forgejo" "https://git.${domain}" "http://localhost:5080/" ]
|
[ "Forgejo" "forgejo" "https://git.${domain}" "http://localhost:5080/" ]
|
||||||
|
[ "Copyparty" "files" "https://cdn.${domain}" "http://localhost:3923/" ]
|
||||||
|
[ "CryptPad" "cryptpad" "https://docs.${domain}" "http://localhost:7090/" ]
|
||||||
[ "CodeServer" "coder" "https://code.proxy.${domain}" "http://localhost:8443/" ]
|
[ "CodeServer" "coder" "https://code.proxy.${domain}" "http://localhost:8443/" ]
|
||||||
[ "AdGuardHome" "adguard" "https://dns.proxy.${domain}" "http://localhost:8088/" ]
|
[ "AdGuardHome" "adguard" "https://dns.proxy.${domain}" "http://localhost:8088/" ]
|
||||||
[ "Traefik" "traefikproxy" "https://dynamic.proxy.${domain}/dashboard/" "" ]
|
[ "Traefik" "traefikproxy" "https://dynamic.proxy.${domain}/dashboard/" "" ]
|
||||||
|
|
@ -48,6 +50,8 @@ in {
|
||||||
];
|
];
|
||||||
routes = {
|
routes = {
|
||||||
"git.${domain}" = "http://localhost:5080";
|
"git.${domain}" = "http://localhost:5080";
|
||||||
|
"cdn.${domain}" = "http://localhost:3923";
|
||||||
|
"docs.${domain}" = "http://localhost:7090";
|
||||||
"auth.${domain}" = "http://localhost:1411";
|
"auth.${domain}" = "http://localhost:1411";
|
||||||
"dash.${domain}" = "http://localhost:5070";
|
"dash.${domain}" = "http://localhost:5070";
|
||||||
"media.${domain}" = "http://localhost:8096";
|
"media.${domain}" = "http://localhost:8096";
|
||||||
|
|
@ -72,6 +76,7 @@ in {
|
||||||
"pass" = d "http://localhost:8060";
|
"pass" = d "http://localhost:8060";
|
||||||
"auth" = d "http://localhost:1411";
|
"auth" = d "http://localhost:1411";
|
||||||
"git" = d "http://localhost:5080";
|
"git" = d "http://localhost:5080";
|
||||||
|
"cdn" = d "http://localhost:3923";
|
||||||
"ai" = d "http://localhost:8080";
|
"ai" = d "http://localhost:8080";
|
||||||
"@" = d "http://localhost:5070";
|
"@" = d "http://localhost:5070";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
5
modules/system/homelab/cdn.nix
Normal file
5
modules/system/homelab/cdn.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
environment.systemPackages = with pkgs; [ copyparty-most ];
|
||||||
|
|
||||||
|
# TODO: systemd service
|
||||||
|
}
|
||||||
15
modules/system/homelab/docs.nix
Normal file
15
modules/system/homelab/docs.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{ homelab, ... }: let
|
||||||
|
domain = "docs.${homelab.domain}";
|
||||||
|
in {
|
||||||
|
services.cryptpad = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
httpPort = 7090;
|
||||||
|
websocketPort = 7080;
|
||||||
|
httpUnsafeOrigin = "https://${domain}";
|
||||||
|
httpSafeOrigin = "https://${domain}";
|
||||||
|
blockDailyCheck = true;
|
||||||
|
disableIntegratedEviction = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue