Add gitea

This commit is contained in:
2024-09-09 14:01:35 +02:00
parent 83670dbabb
commit b449a06e92
2 changed files with 22 additions and 3 deletions

View File

@@ -105,6 +105,17 @@ in {
};
};
virtualHosts."git.sdg.moe" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:4789";
proxyWebsockets = true;
extraConfig = "proxy_pass_header Authorization;";
};
};
# virtualHosts."suwayomi.sdg.moe" = {
# enableACME = true;
# forceSSL = true;
@@ -180,6 +191,14 @@ in {
};
};
services.gitea = rec {
enable = true;
disableRegistration = true;
domain = "sdg.moe";
rootUrl = "https://git.${domain}/";
httpPort = 4789;
};
# services.suwayomi-server = {
# enable = true;
# settings.server = {

View File

@@ -83,7 +83,7 @@ in {
dc = "docker-compose";
dcd = "docker-compose -f docker-compose.dev.yml";
op = "xdg-open";
py = "python3 2> /dev/null || nix-shell -p python3 --command python3";
py = "python3 2> /dev/null || nix shell nixpkgs#python3 -c python3";
jctl = "sudo journalctl -n 1000 -fu";
sloc = "scc";
};
@@ -148,8 +148,8 @@ in {
YSU_IGNORED_ALIASES = ''("g" "-" "~" "/" ".." "..." "...." "....." "md" "rd")'';
DIRENV_LOG_FORMAT = "";
ZSH_TMUX_AUTOSTART = true;
ZSH_TMUX_AUTONAME_SESSION = false;
ZSH_TMUX_DEFAULT_SESSION_NAME = "home";
# ZSH_TMUX_AUTONAME_SESSION = false;
# ZSH_TMUX_DEFAULT_SESSION_NAME = "home";
};
};
}