hosts/dandelion: pull changes

This commit is contained in:
Cilly Leang 2026-03-15 19:41:44 +11:00
parent 5a24bf690f
commit 6bea391858
Signed by: cilly
GPG key ID: 6500251E087653C9
7 changed files with 165 additions and 10 deletions

View file

@ -16,6 +16,7 @@ let
in {
options = ./options.nix;
services = mkAttrsFromPaths [
./services/banksia.nix
./services/jellyfin.nix
./services/nginx.nix
./services/postgres.nix

View file

@ -0,0 +1,11 @@
# TODO ^^
{ ... }: {
services.nginx.virtualHosts = {
"banksia.lava.moe" = {
useACMEHost = "lava.moe";
forceSSL = true;
locations."/".return = "302 https://github.com/cillynder/Banksia";
locations."/api".proxyPass = "http://localhost:8080/";
};
};
}

View file

@ -2,17 +2,20 @@
networking.firewall.allowedTCPPorts = [ 80 443 ];
security.acme = {
acceptTerms = true;
defaults.email = "me@lava.moe";
certs."lava.moe" = {
defaults = {
email = "me@lava.moe";
group = "nginx";
domain = "lava.moe";
dnsProvider = "cloudflare";
credentialsFile = config.age.secrets."acme_dns".path;
};
certs."lava.moe" = {
extraDomainNames = [
"*.lava.moe"
"*.local.lava.moe"
];
dnsProvider = "cloudflare";
credentialsFile = config.age.secrets."acme_dns".path;
};
certs."cilly.moe" = {};
certs."cilly.dev" = {};
};
services.nginx = {

View file

@ -1,5 +1,17 @@
{ inputs, ... }: {
{ inputs, pkgs, ... }: let
pastel = inputs.pastel.packages.${pkgs.system}.default;
in {
services.nginx.virtualHosts = {
"cilly.moe" = {
useACMEHost = "cilly.moe";
forceSSL = true;
root = pastel.outPath;
};
"cilly.dev" = {
useACMEHost = "cilly.dev";
forceSSL = true;
root = pastel.outPath;
};
"lava.moe" = {
useACMEHost = "lava.moe";
forceSSL = true;