diff options
Diffstat (limited to 'nix/hosts/wildcat')
-rw-r--r-- | nix/hosts/wildcat/configuration.nix | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/nix/hosts/wildcat/configuration.nix b/nix/hosts/wildcat/configuration.nix index 7143ad8..b74f522 100644 --- a/nix/hosts/wildcat/configuration.nix +++ b/nix/hosts/wildcat/configuration.nix @@ -64,6 +64,14 @@ }; }; + virtualisation.oci-containers.containers.excalidraw = { + autoStart = true; + image = "excalidraw/excalidraw:latest"; + environment = { TZ = "America/Los_Angeles"; }; + ports = [ "127.0.0.1:3030:80" ]; + extraOptions = [ "--pull=always" ]; + }; + services.nginx = { enable = true; @@ -74,6 +82,10 @@ virtualHosts = { "fcuny.net" = { + # make it the default site: if a request goes through nginx + # without a host header, this will be the default site we serve + # for that request. + default = true; forceSSL = true; enableACME = true; locations = { @@ -84,10 +96,6 @@ }; }; "git.fcuny.net" = { - # make cgit the default site: if a request goes through nginx - # without a host header, this will be the default site we serve - # for that request. - default = true; forceSSL = true; enableACME = true; locations = { @@ -96,6 +104,16 @@ }; }; }; + "draw.fcuny.net" = { + forceSSL = true; + enableACME = true; + locations = { + "/".proxyPass = "http://127.0.0.1:3030"; + "/.well-known/acme-challenge" = { + root = "/var/lib/acme/acme-challenges"; + }; + }; + }; }; }; @@ -105,7 +123,11 @@ repository = "/srv/backups/git"; initialize = true; paths = [ "/var/lib/gitolite" ]; - exclude = [ "/var/lib/gitolite/.bash_history" "/var/lib/gitolite/.ssh" ]; + exclude = [ + "/var/lib/gitolite/.bash_history" + "/var/lib/gitolite/.ssh" + "/var/lib/gitolite/.viminfo" + ]; extraBackupArgs = [ "--exclude-caches" "--compression=max" ]; timerConfig = { OnCalendar = "*:0/30"; }; pruneOpts = [ |