mob next [ci-skip] [ci skip] [skip ci]
lastFile:machines/hadar/configuration.nix
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
domain = "inventory.poyrecords.newedge.house";
|
domain = "localhost";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -74,22 +74,25 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
80
|
||||||
|
443
|
||||||
|
];
|
||||||
|
|
||||||
services.inventree = {
|
services.inventree = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = domain;
|
hostName = "${domain}";
|
||||||
config.site_url = "http://${config.services.inventree.hostName}";
|
config.site_url = "http://${config.services.inventree.hostName}";
|
||||||
secretKeyFile = config.clan.core.vars.generators.inventree.files.secret-key.path;
|
secretKeyFile = config.clan.core.vars.generators.inventree.files.secret-key.path;
|
||||||
config.oidc_private_key_file = config.clan.core.vars.generators.inventree.files.oidc-key.path;
|
config.oidc_private_key_file = config.clan.core.vars.generators.inventree.files.oidc-key.path;
|
||||||
config.adminPasswordFile = config.clan.core.vars.generators.inventree.files.admin-password.path;
|
config.adminPasswordFile = config.clan.core.vars.generators.inventree.files.admin-password.path;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."${domain}" = {
|
# services.nginx.virtualHosts."${domain}" = {
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
sslCertificate = config.clan.core.vars.generators.nginx.files.sslCert.path;
|
# sslCertificate = config.clan.core.vars.generators.nginx.files.sslCert.path;
|
||||||
sslCertificateKey = config.clan.core.vars.generators.nginx.files.sslKey.path;
|
# sslCertificateKey = config.clan.core.vars.generators.nginx.files.sslKey.path;
|
||||||
};
|
# };
|
||||||
|
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
clan.core.sops.defaultGroups = [ "admins" ];
|
clan.core.sops.defaultGroups = [ "admins" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user