i think this works
This commit is contained in:
parent
ea1bf3b0e3
commit
3b7d181be3
|
@ -19,6 +19,10 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
url = "github:nixified-ai/flake";
|
url = "github:nixified-ai/flake";
|
||||||
};
|
};
|
||||||
|
website = {
|
||||||
|
url = "path:/tfcconnection";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs,
|
outputs = { nixpkgs,
|
||||||
|
@ -30,6 +34,7 @@
|
||||||
simple-nixos-mailserver,
|
simple-nixos-mailserver,
|
||||||
nocodb,
|
nocodb,
|
||||||
nixified-ai,
|
nixified-ai,
|
||||||
|
website,
|
||||||
self,
|
self,
|
||||||
... }:
|
... }:
|
||||||
let
|
let
|
||||||
|
@ -38,6 +43,7 @@
|
||||||
pkgsForSystem = import nixpkgs {
|
pkgsForSystem = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config = { allowUnfree = true; };
|
config = { allowUnfree = true; };
|
||||||
|
overlays = [ (final: prev: { website = website.defaultPackage; }) ];
|
||||||
};
|
};
|
||||||
|
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
|
24
modules/website.nix
Normal file
24
modules/website.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dn = "tfcconnection.org";
|
||||||
|
in
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
services.nginx.virtualHosts.${dn} = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:4242";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systemd.services = {
|
||||||
|
website = {
|
||||||
|
enable = true;
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "${pkgs.website}/bin/tfcapi";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -19,7 +19,7 @@ in
|
||||||
../../modules/searx.nix
|
../../modules/searx.nix
|
||||||
../../modules/mail.nix
|
../../modules/mail.nix
|
||||||
../../modules/vaultwarden.nix
|
../../modules/vaultwarden.nix
|
||||||
# ../../modules/nocodb.nix
|
../../modules/website.nix
|
||||||
../../modules/grist.nix
|
../../modules/grist.nix
|
||||||
../../modules/keycloak.nix
|
../../modules/keycloak.nix
|
||||||
# ../../modules/comfyui.nix
|
# ../../modules/comfyui.nix
|
||||||
|
@ -132,11 +132,11 @@ in
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
|
|
||||||
virtualHosts."tfcconnection.org" = {
|
# virtualHosts."tfcconnection.org" = {
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
locations."/".proxyPass = "http://localhost:4242";
|
# locations."/".proxyPass = "http://localhost:4242";
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
# CADDY
|
# CADDY
|
||||||
|
|
Loading…
Reference in a new issue