mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
nix: add vps setup
This commit is contained in:
parent
028a52d9ff
commit
50015669e1
10 changed files with 433 additions and 0 deletions
28
nix/modules/forgejo.nix
Normal file
28
nix/modules/forgejo.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
domain = "git.olexsmir.xyz";
|
||||
in
|
||||
{
|
||||
services.caddy.virtualHosts.${domain}.extraConfig = ''
|
||||
reverse_proxy http://localhost:3001
|
||||
'';
|
||||
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
database.type = "sqlite3";
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = domain;
|
||||
ROOT_URL = "https://${domain}/";
|
||||
HTTP_PORT = 3001;
|
||||
# TODO: ? setup ssh
|
||||
};
|
||||
DEFAULT.APP_NAME = "my git";
|
||||
repository.DISABLE_STARS = true;
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
actions.ENABLED = false; # TODO:
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: setup woodpecker
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue