mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-23 05:09:32 -08:00
32 lines
613 B
Nix
32 lines
613 B
Nix
{ config, ...}:
|
|
|
|
let
|
|
in
|
|
{
|
|
services.atuin = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
port = 8910;
|
|
host = "127.0.0.1";
|
|
openRegistration = false;
|
|
database = {
|
|
createLocally = true;
|
|
};
|
|
};
|
|
|
|
services.nginx.virtualHosts = {
|
|
"atuin.nickiel.net" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:${builtins.toString config.services.atuin.port}";
|
|
proxyWebsockets = true;
|
|
extraConfig = ''
|
|
allow 100.64.0.0/16;
|
|
allow 127.0.0.1;
|
|
deny all;
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|