2023-07-06 20:36:22 +02:00
|
|
|
{config, ...}: {
|
|
|
|
services.atuin = {
|
|
|
|
enable = true;
|
|
|
|
openRegistration = false;
|
|
|
|
maxHistoryLength = 1024 * 16;
|
|
|
|
port = 43473;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx.virtualHosts."atuin.winston.sh" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = false;
|
|
|
|
useACMEHost = "winston.sh";
|
|
|
|
|
|
|
|
locations."/" = with config.services.atuin; {
|
2024-09-13 02:28:10 +02:00
|
|
|
extraConfig =
|
|
|
|
# nginx
|
|
|
|
''
|
|
|
|
access_log /var/log/nginx/atuin.access.log combined_geoip;
|
|
|
|
'';
|
2023-07-06 20:36:22 +02:00
|
|
|
proxyPass = "http://${host}:${toString port}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|