41 lines
796 B
Nix
41 lines
796 B
Nix
_: let
|
|
port = 3000;
|
|
in {
|
|
services = {
|
|
forgejo = {
|
|
enable = true;
|
|
settings = {
|
|
DEFAULT = {
|
|
APP_NAME = "buffet's kitchen";
|
|
};
|
|
|
|
server = {
|
|
DOMAIN = "buffets.kitchen";
|
|
HTTP_PORT = port;
|
|
};
|
|
|
|
service.DISABLE_REGISTRATION = true;
|
|
cron.ENABLED = true;
|
|
federation.ENABLED = true;
|
|
};
|
|
};
|
|
|
|
nginx = {
|
|
enable = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
recommendedOptimisation = true;
|
|
recommendedProxySettings = true;
|
|
recommendedTlsSettings = true;
|
|
|
|
virtualHosts."buffets.kitchen" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:${toString port}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|