initial server config
This commit is contained in:
commit
8f6d63909a
10 changed files with 313 additions and 0 deletions
21
services/forgejo.nix
Normal file
21
services/forgejo.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
database.type = "sqlite3";
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = "git.danielk.me";
|
||||
ROOT_URL = "https://git.danielk.me/";
|
||||
HTTP_PORT = 3723;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."git.danielk.me" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy 127.0.0.1:3723
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue