a crud ton of tweaks.....

This commit is contained in:
Chris Cochrun 2024-07-18 10:56:59 -05:00
parent 3877ffcf58
commit bc3fae7059
2 changed files with 33 additions and 0 deletions

28
modules/forgejo.nix Normal file
View file

@ -0,0 +1,28 @@
{ config, lib, pkgs, ... }:
let
dn = "git.tfcconnection.org";
in
with lib;
{
services.forgejo = {
enable = true;
settings = {
server = {
DOMAIN = "${dn}";
ROOT_URL = "https://${dn}";
# PROTOCOL = "https";
HTTP_PORT = 5000;
};
};
};
services.caddy = {
virtualHosts = {
"${dn}".extraConfig = ''
reverse_proxy 127.0.0.1:5000
encode gzip
'';
};
};
}

5
pkgs/server.nix Normal file
View file

@ -0,0 +1,5 @@
{ pkgs, config, ... }:
{
environment.systemPackages = with pkgs; [
];
}