containers: clean up domain names
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
This commit is contained in:
parent
2f79c9d6ec
commit
cc8e7058b3
6 changed files with 17 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, ... }: {
|
||||
{ config, fqdn, lib, ... }: {
|
||||
system.stateVersion = "25.11";
|
||||
networking.firewall.allowedTCPPorts = [ 22 3000 ];
|
||||
networking.firewall.allowedUDPPorts = [ 22 3000 ];
|
||||
|
|
@ -13,8 +13,8 @@
|
|||
settings = {
|
||||
DEFAULT.APP_NAME = "Garden";
|
||||
server = {
|
||||
DOMAIN = "garden.lava.moe";
|
||||
ROOT_URL = "https://garden.lava.moe/";
|
||||
DOMAIN = fqdn;
|
||||
ROOT_URL = "https://${fqdn}/";
|
||||
HTTP_PORT = 3000;
|
||||
START_SSH_SERVER = true;
|
||||
BUILTIN_SSH_SERVER_USER = "git";
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
outputs = { nixpkgs, catppuccin, ... }:
|
||||
let
|
||||
name = "citrine";
|
||||
fqdn = "garden.lava.moe";
|
||||
subnetId = "3";
|
||||
|
||||
subnet = x: "fd0d:1::${subnetId}:${toString x}";
|
||||
|
|
@ -35,7 +36,7 @@
|
|||
internalInterfaces = [ "ve-${name}" ];
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."garden.lava.moe" = {
|
||||
services.nginx.virtualHosts."${fqdn}" = {
|
||||
useACMEHost = "lava.moe";
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://[${client}]:3000";
|
||||
|
|
@ -53,6 +54,7 @@
|
|||
nixpkgs = nixpkgs;
|
||||
ephemeral = true;
|
||||
config = { imports = modules; };
|
||||
specialArgs = { inherit fqdn; };
|
||||
|
||||
bindMounts."persist" = {
|
||||
hostPath = "/persist/containers/${name}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue