add gitea
This commit is contained in:
@@ -47,44 +47,44 @@ in
|
|||||||
allowedTCPPorts = [ 22 80 443 ];
|
allowedTCPPorts = [ 22 80 443 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# services.nginx.enable = true;
|
services.nginx.enable = true;
|
||||||
# services.nginx.virtualHosts."${domain}" = {
|
services.nginx.virtualHosts."${domain}" = {
|
||||||
# sslCertificate = "/var/lib/acme/gitea/fullchain.pem";
|
sslCertificate = "/var/lib/acme/gitea/fullchain.pem";
|
||||||
# sslCertificateKey = "/var/lib/acme/gitea/key.pem";
|
sslCertificateKey = "/var/lib/acme/gitea/key.pem";
|
||||||
# sslTrustedCertificate = "/var/lib/acme/gitea/chain.pem";
|
sslTrustedCertificate = "/var/lib/acme/gitea/chain.pem";
|
||||||
# forceSSL = true;
|
forceSSL = true;
|
||||||
# locations."/" = {
|
locations."/" = {
|
||||||
# proxyPass = "http://localhost:3001/";
|
proxyPass = "http://localhost:3001/";
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
#
|
|
||||||
# nixpkgs.config.permittedInsecurePackages = [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
# "gitea-1.19.4"
|
"gitea-1.19.4"
|
||||||
# ];
|
];
|
||||||
#
|
|
||||||
# services.gitea = {
|
services.gitea = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# appName = "Cloonar Gitea server"; # Give the site a name
|
appName = "Cloonar Gitea server"; # Give the site a name
|
||||||
# settings = {
|
settings = {
|
||||||
# server = {
|
server = {
|
||||||
# ROOT_URL = "https://${domain}/";
|
ROOT_URL = "https://${domain}/";
|
||||||
# HTTP_PORT = 3001;
|
HTTP_PORT = 3001;
|
||||||
# DOMAIN = domain;
|
DOMAIN = domain;
|
||||||
# };
|
};
|
||||||
# openid = {
|
openid = {
|
||||||
# ENABLE_OPENID_SIGNIN = false;
|
ENABLE_OPENID_SIGNIN = false;
|
||||||
# ENABLE_OPENID_SIGNUP = true;
|
ENABLE_OPENID_SIGNUP = true;
|
||||||
# WHITELISTED_URIS = "auth.example.com";
|
WHITELISTED_URIS = "auth.cloonar.com";
|
||||||
# };
|
};
|
||||||
# service = {
|
service = {
|
||||||
# DISABLE_REGISTRATION = false;
|
DISABLE_REGISTRATION = false;
|
||||||
# ALLOW_ONLY_EXTERNAL_REGISTRATION = true;
|
ALLOW_ONLY_EXTERNAL_REGISTRATION = true;
|
||||||
# SHOW_REGISTRATION_BUTTON = false;
|
SHOW_REGISTRATION_BUTTON = false;
|
||||||
# };
|
};
|
||||||
# webhook.ALLOWED_HOST_LIST = "drone.cloonar.com";
|
webhook.ALLOWED_HOST_LIST = "drone.cloonar.com";
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
#
|
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user