feat: Added gitea registration
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{config, ...}: {
|
||||
# virtualisation.docker.enable = true;
|
||||
# sops = {
|
||||
# # secrets."gitea/token".owner = config.systemd.services.gitea-actions-mirai.serviceConfig.User;
|
||||
# secrets."gitea/token" = {};
|
||||
# };
|
||||
virtualisation.docker.enable = true;
|
||||
sops = {
|
||||
secrets."gitea/registration".owner = config.systemd.services.gitea-actions-mirai.serviceConfig.User;
|
||||
# secrets."gitea/registration" = {};
|
||||
};
|
||||
services = {
|
||||
gitea = {
|
||||
enable = true;
|
||||
@@ -25,19 +25,19 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
# 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;
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
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/registration".path;
|
||||
};
|
||||
};
|
||||
};
|
||||
caddy = {
|
||||
virtualHosts."git.darksailor.dev".extraConfig = ''
|
||||
forward_auth localhost:5555 {
|
||||
|
||||
Reference in New Issue
Block a user