rice/hosts/ami/forgejo.nix
buffet df67724405 feat(forgejo): update to nixos-unstable version
1.21 is the first version to be Forgejo-forgejo.
2024-05-20 12:06:16 +02:00

43 lines
895 B
Nix

{ pkgs, ...}: let
port = 3000;
in {
services = {
forgejo = {
enable = true;
package = pkgs.unstable.forgejo;
settings = {
DEFAULT = {
APP_NAME = "buffet's kitchen";
};
server = {
DOMAIN = "buffets.kitchen";
ROOT_URL = "https://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}";
};
};
};
};
}