orm: move actual.qenya.tel -> actual.unspecified.systems
This commit is contained in:
parent
a658c88fc0
commit
addbf7ac3e
|
@ -57,7 +57,21 @@
|
||||||
};
|
};
|
||||||
networking.firewall.interfaces."wg-birdsong".allowedTCPPorts = [ 5432 ];
|
networking.firewall.interfaces."wg-birdsong".allowedTCPPorts = [ 5432 ];
|
||||||
|
|
||||||
qenya.services.actual.enable = true;
|
qenya.services.actual = {
|
||||||
|
enable = true;
|
||||||
|
domain = "actual.unspecified.systems";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
"actual.qenya.tel" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/".return = "301 https://actual.unspecified.systems$request_uri";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
let
|
let
|
||||||
|
inherit (lib) mkIf mkOption mkEnableOption types;
|
||||||
cfg = config.qenya.services.actual;
|
cfg = config.qenya.services.actual;
|
||||||
domain = "actual.qenya.tel";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.qenya.services.actual = {
|
options.qenya.services.actual = {
|
||||||
enable = mkEnableOption "Actual Budget";
|
enable = mkEnableOption "Actual Budget";
|
||||||
|
domain = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
${domain} = {
|
${cfg.domain} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/".proxyPass = "http://127.0.0.1:5006/";
|
locations."/".proxyPass = "http://127.0.0.1:5006/";
|
||||||
|
|
Loading…
Reference in a new issue