This commit is contained in:
Tasia Iso 2024-10-03 13:11:58 +02:00
parent 2b2d9880a8
commit a099bfcf34
Signed by: tasiaiso
SSH key fingerprint: SHA256:KiRjUay5C9i6objsEOIycygBHn54pDBB3Lj7fyJ0Elw

View file

@ -49,18 +49,61 @@ in {
];
};
services.nginx.enable = true;
services.nginx.virtualHosts."vulpecula.zone" = {
services.nginx = {
enable = true;
virtualHosts."vulpecula.zone" = {
addSSL = true;
enableACME = true;
root = "/www";
};
virtualHosts."git.vulpecula.zone" = {
addSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:${toString config.services.forgejo.settings.HTTP_PORT}";
};
};
security.acme = {
acceptTerms = true;
defaults.email = "tasiaiso@proton.me";
};
services.forgejo = {
enable = true;
database.type = "postgres";
# Enable support for Git Large File Storage
lfs.enable = true;
settings = {
server = {
DOMAIN = "git.vulpecula.zone";
# You need to specify this to remove the port from URLs in the web UI.
ROOT_URL = "https://git.vulpecula.zone/";
HTTP_PORT = 62101;
};
# You can temporarily allow registration to create an admin user.
service.DISABLE_REGISTRATION = false;
# Add support for actions, based on act: https://github.com/nektos/act
# actions = {
# ENABLED = true;
# DEFAULT_ACTIONS_URL = "github";
# };
# 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}";
# };
};
# mailerPasswordFile = config.age.secrets.forgejo-mailer-password.path;
};
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
networking.domain = "";