This commit is contained in:
parent
10af5aec8d
commit
5e3b6233e7
1 changed files with 46 additions and 9 deletions
|
|
@ -181,7 +181,7 @@ in {
|
||||||
# "sonarr.${domain}" = (reverseProxy 8989);
|
# "sonarr.${domain}" = (reverseProxy 8989);
|
||||||
# "radarr.${domain}" = (reverseProxy 7878);
|
# "radarr.${domain}" = (reverseProxy 7878);
|
||||||
# "qbittorrent.${domain}" = (reverseProxy qbittorrentPort);
|
# "qbittorrent.${domain}" = (reverseProxy qbittorrentPort);
|
||||||
"git.antoinevaure.fr" = (reverseProxy 2999);
|
"git.antoinevaure.fr" = (reverseProxy 3000);
|
||||||
# "nextcloud.${domain}" = {
|
# "nextcloud.${domain}" = {
|
||||||
# enableACME = true;
|
# enableACME = true;
|
||||||
# forceSSL = true;
|
# forceSSL = true;
|
||||||
|
|
@ -189,15 +189,52 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.gitea = {
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.server.HTTP_PORT = 2999;
|
lfs.enable = true;
|
||||||
settings.service.DISABLE_REGISTRATION = true;
|
settings = {
|
||||||
settings.server.DOMAIN = "git.antoinevaure.fr";
|
server = {
|
||||||
settings.server.ROOT_URL = "https://git.antoinevaure.fr/";
|
DOMAIN = "git.antoinevaure.fr";
|
||||||
settings.repository = {
|
ROOT_URL = "https://git.antoinevaure.fr/";
|
||||||
ENABLE_PUSH_CREATE_USER = true;
|
HTTP_PORT = 3000;
|
||||||
ENABLE_PUSH_CREATE_ORG = true;
|
};
|
||||||
|
# You can temporarily allow registration to create an admin user.
|
||||||
|
service.DISABLE_REGISTRATION = true;
|
||||||
|
# Add support for actions, based on act: https://github.com/nektos/act
|
||||||
|
actions = {
|
||||||
|
ENABLED = true;
|
||||||
|
# DEFAULT_ACTIONS_URL = "github";
|
||||||
|
};
|
||||||
|
|
||||||
|
repository = {
|
||||||
|
ENABLE_PUSH_CREATE_USER = true;
|
||||||
|
ENABLE_PUSH_CREATE_ORG = true;
|
||||||
|
};
|
||||||
|
# Sending emails is completely optional
|
||||||
|
# You can send a test email from the web UI at:
|
||||||
|
# Profile Picture > Site Administration > Configuration > Mailer Configuration
|
||||||
|
# mailer = {
|
||||||
|
# ENABLED = true;
|
||||||
|
# SMTP_ADDR = "mail.example.com";
|
||||||
|
# FROM = "noreply@${srv.DOMAIN}";
|
||||||
|
# USER = "noreply@${srv.DOMAIN}";
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.gitea-actions-runner = {
|
||||||
|
package = pkgs.forgejo-actions-runner;
|
||||||
|
instances.default = {
|
||||||
|
enable = true;
|
||||||
|
name = "monolith";
|
||||||
|
url = "https://git.antoinevaure.fr";
|
||||||
|
# Obtaining the path to the runner token file may differ
|
||||||
|
# tokenFile should be in format TOKEN=<secret>, since it's EnvironmentFile for systemd
|
||||||
|
tokenFile = /root/forgejo_runner_token;
|
||||||
|
labels = [
|
||||||
|
"native:host"
|
||||||
|
];
|
||||||
|
hostPackages = with pkgs; [ bash coreutils gitMinimal config.nix.package ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue