\-knot
This commit is contained in:
@@ -11,17 +11,8 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules/nixos
|
../../modules/nixos
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
inputs.tangled.nixosModules.knot
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.tangled.knot = {
|
|
||||||
enable = true;
|
|
||||||
server = {
|
|
||||||
hostname = "knot.schmatzler.com";
|
|
||||||
owner = "did:plc:yiapylv5gwzlyzesppjmukvj";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [80 443];
|
networking.firewall.allowedTCPPorts = [80 443];
|
||||||
|
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
@@ -30,19 +21,19 @@
|
|||||||
type = "sqlite3";
|
type = "sqlite3";
|
||||||
path = "/var/lib/gitea/data/gitea.db";
|
path = "/var/lib/gitea/data/gitea.db";
|
||||||
};
|
};
|
||||||
settings.server = {
|
settings = {
|
||||||
ROOT_URL = "https://git.schmatzler.com/";
|
server = {
|
||||||
DOMAIN = "git.schmatzler.com";
|
ROOT_URL = "https://git.schmatzler.com/";
|
||||||
HTTP_ADDR = "127.0.0.1";
|
DOMAIN = "git.schmatzler.com";
|
||||||
HTTP_PORT = 3000;
|
HTTP_ADDR = "127.0.0.1";
|
||||||
|
HTTP_PORT = 3000;
|
||||||
|
};
|
||||||
|
service.DISABLE_REGISTRATION = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."knot.schmatzler.com".extraConfig = ''
|
|
||||||
reverse_proxy localhost:5555
|
|
||||||
'';
|
|
||||||
virtualHosts."git.schmatzler.com".extraConfig = ''
|
virtualHosts."git.schmatzler.com".extraConfig = ''
|
||||||
reverse_proxy localhost:3000
|
reverse_proxy localhost:3000
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user