postfix, forgejo
This commit is contained in:
parent
0c0c944110
commit
5d1d3c3195
2 changed files with 8 additions and 27 deletions
|
|
@ -10,10 +10,10 @@ in
|
|||
{
|
||||
|
||||
security.acme.certs."${config.networking.domain}".extraDomainNames = [
|
||||
"git.ktiu.net"
|
||||
"git.${config.networking.domain}"
|
||||
];
|
||||
|
||||
services.nginx.virtualHosts."git.ktiu.net" = {
|
||||
services.nginx.virtualHosts."git.${config.networking.domain}" = {
|
||||
onlySSL = true;
|
||||
useACMEHost = config.networking.domain;
|
||||
locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
|
||||
|
|
@ -32,25 +32,18 @@ in
|
|||
settings = {
|
||||
|
||||
server = {
|
||||
# DOMAIN = "git.${config.networking.domain}";
|
||||
# # You need to specify this to remove the port from URLs in the web UI.
|
||||
# ROOT_URL = "https://git.ktiu.net/";
|
||||
DOMAIN = "git.${config.networking.domain}";
|
||||
ROOT_URL = "https://${config.services.forgejo.settings.server.DOMAIN}/";
|
||||
HTTP_PORT = 3080;
|
||||
};
|
||||
|
||||
# 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";
|
||||
};
|
||||
|
||||
# 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 = "localhost";
|
||||
|
|
@ -58,17 +51,6 @@ in
|
|||
FROM = "Forgejo <git@${config.networking.domain}>";
|
||||
};
|
||||
};
|
||||
|
||||
# secrets = {
|
||||
# mailer.PASSWD = config.age.secrets.forgejo-mailer-password.path;
|
||||
# };
|
||||
|
||||
};
|
||||
|
||||
# age.secrets.forgejo-mailer-password = {
|
||||
# file = ../secrets/forgejo-mailer-password.age;
|
||||
# mode = "400";
|
||||
# owner = "forgejo";
|
||||
# };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue