add cockpit to glance and fully rm cryptpad
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 26s
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 26s
This commit is contained in:
parent
3e67b774a3
commit
882cc40d54
3 changed files with 1 additions and 51 deletions
|
|
@ -41,7 +41,7 @@ in {
|
||||||
[ "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/" ]
|
[ "Copyparty" "files" "https://cdn.${domain}" "http://localhost:3923/" ]
|
||||||
[ "CryptPad" "cryptpad" "https://docs.${domain}" "http://localhost:7090/" ]
|
[ "Cockpit" "cockpit" "https://control.${domain}" "http://localhost:9090/" ]
|
||||||
[ "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/" "" ]
|
||||||
|
|
@ -56,9 +56,6 @@ in {
|
||||||
routes = {
|
routes = {
|
||||||
"mc.${domain}" = "tcp://localhost:25565";
|
"mc.${domain}" = "tcp://localhost:25565";
|
||||||
|
|
||||||
"docs-sandbox.${domain}" = "http://localhost:7090";
|
|
||||||
"docs.${domain}" = "http://localhost:7090";
|
|
||||||
|
|
||||||
"cdn.${domain}" = selfSigned "https://localhost:3923";
|
"cdn.${domain}" = selfSigned "https://localhost:3923";
|
||||||
|
|
||||||
"git.${domain}" = "http://localhost:5080";
|
"git.${domain}" = "http://localhost:5080";
|
||||||
|
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
||||||
{ lib, pkgs, homelab, ... }: let
|
|
||||||
domain = "docs.${homelab.domain}";
|
|
||||||
sandbox = "docs-sandbox.${homelab.domain}";
|
|
||||||
in {
|
|
||||||
services.cryptpad = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
websocketPort = 7091;
|
|
||||||
httpPort = 7090;
|
|
||||||
httpAddress = "127.0.0.1";
|
|
||||||
httpUnsafeOrigin = "https://${domain}";
|
|
||||||
httpSafeOrigin = "https://${sandbox}";
|
|
||||||
blockDailyCheck = true;
|
|
||||||
disableIntegratedEviction = true;
|
|
||||||
adminKeys = [
|
|
||||||
"[satr14@docs.satr14.my.id/f1A82fmBuqQka2bNqrCb1WbB9r2ex5A3rdys5xLX3Hc=]"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.tmpfiles.rules = lib.singleton "L+ /var/lib/cryptpad/customize/application_config.js - - - - ${pkgs.writeText "cryptpad-application-config.js" ''
|
|
||||||
(() => {
|
|
||||||
const factory = (AppConfig) => {
|
|
||||||
AppConfig.disableAnonymousPadCreation = true;
|
|
||||||
AppConfig.disableAnonymousStore = true;
|
|
||||||
AppConfig.defaultDarkTheme = true;
|
|
||||||
return AppConfig;
|
|
||||||
};
|
|
||||||
|
|
||||||
if (typeof(module) !== 'undefined' && module.exports) {
|
|
||||||
module.exports = factory(
|
|
||||||
require('../www/common/application_config_internal.js')
|
|
||||||
);
|
|
||||||
} else if ((typeof(define) !== 'undefined' && define !== null) && (define.amd !== null)) {
|
|
||||||
define(['/common/application_config_internal.js'], factory);
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
''}";
|
|
||||||
|
|
||||||
fileSystems."/var/lib/private/cryptpad" = {
|
|
||||||
device = "/mnt/data/apps/cryptpad";
|
|
||||||
depends = [ "/mnt/data" ];
|
|
||||||
options = [ "bind" "nofail" ];
|
|
||||||
fsType = "none";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -20,7 +20,6 @@ in {
|
||||||
./homelab/pass.nix
|
./homelab/pass.nix
|
||||||
./homelab/dash.nix
|
./homelab/dash.nix
|
||||||
./homelab/code.nix
|
./homelab/code.nix
|
||||||
./homelab/docs.nix
|
|
||||||
./homelab/dns.nix
|
./homelab/dns.nix
|
||||||
./homelab/git.nix
|
./homelab/git.nix
|
||||||
./homelab/cdn.nix
|
./homelab/cdn.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue