feat: enable atuin sync server
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
119663c180
commit
cca554ebfb
1 changed files with 17 additions and 0 deletions
|
|
@ -139,6 +139,23 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.atuin = {
|
||||||
|
enable = true;
|
||||||
|
openRegistration = true;
|
||||||
|
database = {
|
||||||
|
uri = "postgresql://atuin@db-01.tailnet.escapeangle.com:5432/atuin";
|
||||||
|
createLocally = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."atuin.escapeangle.com" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${toString config.services.atuin.port}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
security.acme.defaults.email = "landervandenbulcke@gmail.com";
|
security.acme.defaults.email = "landervandenbulcke@gmail.com";
|
||||||
security.acme.acceptTerms = true;
|
security.acme.acceptTerms = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue