a crud ton of tweaks.....
This commit is contained in:
parent
3877ffcf58
commit
bc3fae7059
28
modules/forgejo.nix
Normal file
28
modules/forgejo.nix
Normal 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
5
pkgs/server.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ pkgs, config, ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue