forgejo
This commit is contained in:
parent
c0c95ea8a7
commit
72ef09d952
4 changed files with 33 additions and 42 deletions
|
@ -12,9 +12,17 @@ in
|
|||
};
|
||||
stateDir = "/mnt/git-storage";
|
||||
settings = {
|
||||
default = {
|
||||
APP_NAME = "safe harbour";
|
||||
};
|
||||
server = {
|
||||
DOMAIN = "gt.emenel.ca";
|
||||
ROOT_URL = "https://gt.emenel.ca/";
|
||||
HTTP_PORT = port;
|
||||
};
|
||||
repository = {
|
||||
DEFAULT_BRANCH = "main";
|
||||
};
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
actions = {
|
||||
ENABLED = true;
|
||||
|
@ -30,16 +38,15 @@ in
|
|||
# mailerPasswordFile = config.age.secrets.forgejo-mailer-password.path;
|
||||
};
|
||||
|
||||
# caddy.virtualHosts."gt.emenel.ca" = {
|
||||
# serverAliases = [ "www.gt.emenel.ca" ];
|
||||
# extraConfig = ''
|
||||
# reverse_proxy http://localhost:${port} {
|
||||
# header_down X-Real-IP {http.request.remote}
|
||||
# header_down X-Forwarded-For {http.request.remote}
|
||||
# }
|
||||
# '';
|
||||
# };
|
||||
# };
|
||||
caddy.virtualHosts."gt.emenel.ca" = {
|
||||
extraConfig = ''
|
||||
tls internal
|
||||
reverse_proxy http://localhost:12345 {
|
||||
header_down X-Real-IP {http.request.remote}
|
||||
header_down X-Forwarded-For {http.request.remote}
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
# gitea-actions-runner = {
|
||||
# package = pkgs.forgejo-actions-runner;
|
||||
|
@ -82,15 +89,15 @@ in
|
|||
pkgs.forgejo-runner
|
||||
];
|
||||
|
||||
# sops.secrets.forgejo-emenel.owner = "forgejo";
|
||||
# systemd.services.forgejo.preStart = let
|
||||
# adminCmd = "${lib.getExe pkgs.forgejo} admin user";
|
||||
# pwd = config.sops.secrets.forgejo-emenel;
|
||||
# user = "emenel"; # Note, Forgejo doesn't allow creation of an account named "admin"
|
||||
# in ''
|
||||
# ${adminCmd} create --admin --email "matt@emenel.ca" --username ${user} --password "$(tr -d '\n' < ${pwd.path})" || true
|
||||
# ## uncomment this line to change an admin user which was already created
|
||||
# # ${adminCmd} change-password --username ${user} --password "$(tr -d '\n' < ${pwd.path})" || true
|
||||
# '';
|
||||
# sops.secrets.forgejo-emenel.owner = "forgejo";
|
||||
# systemd.services.forgejo.preStart = let
|
||||
# adminCmd = "${lib.getExe pkgs.forgejo} admin user";
|
||||
# pwd = config.sops.secrets.forgejo-emenel;
|
||||
# user = "emenel"; # Note, Forgejo doesn't allow creation of an account named "admin"
|
||||
# in ''
|
||||
# ${adminCmd} create --admin --email "matt@emenel.ca" --username ${user} --password "$(tr -d '\n' < ${pwd.path})" || true
|
||||
# ## uncomment this line to change an admin user which was already created
|
||||
# # ${adminCmd} change-password --username ${user} --password "$(tr -d '\n' < ${pwd.path})" || true
|
||||
# '';
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue