feat: Added stuff

This commit is contained in:
uttarayan21
2025-07-15 23:58:03 +05:30
parent 28f3b6aba1
commit dc1dfbf389
6 changed files with 42 additions and 15 deletions

View File

@@ -1,21 +1,40 @@
{...}: {
{config, ...}: {
virtualisation.docker.enable = true;
sops = {
secrets."gitea/token" = {};
};
services = {
gitea = {
enable = true;
settings = {
service = {
# DISABLE_REGISTRATION = false;
ENABLE_REVERSE_PROXY_AUTHENTICATION = true;
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = true;
};
mailer = {
ENABLED = true;
PROTOCOL = "sendmail";
# SENDMAIL_PATH = "sendmail";
};
security = {
REVERSE_PROXY_AUTHENTICATION_USER = "REMOTE-USER";
};
server = {
ROOT_URL = "https://git.darksailor.dev";
DOMAIN = "git.darksailor.dev";
};
};
};
gitea-actions-runner = {
instances = {
mirai = {
name = "mirai";
enable = true;
url = "https://git.darksailor.dev";
labels = [
"ubuntu-latest:docker://node:18-bullseye"
];
tokenFile = config.sops.secrets."gitea/token".path;
};
};
};
caddy = {

View File

@@ -28,7 +28,7 @@
};
};
open-webui = {
enable = true;
enable = false;
port = 7070;
environment = {
SCARF_NO_ANALYTICS = "True";
@@ -44,13 +44,13 @@
};
caddy = {
virtualHosts."llama.darksailor.dev".extraConfig = ''
forward_auth localhost:5555 {
uri /api/authz/forward-auth
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
}
reverse_proxy localhost:7070
'';
# virtualHosts."llama.darksailor.dev".extraConfig = ''
# forward_auth localhost:5555 {
# uri /api/authz/forward-auth
# copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
# }
# reverse_proxy localhost:7070
# '';
virtualHosts."ollama.darksailor.dev".extraConfig = ''
@apikey {
header Authorization "Bearer {env.LLAMA_API_KEY}"