mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 21:16:35 +05:30
add wakapi
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
|
||||
ensureDatabases = [
|
||||
"plausible"
|
||||
"wakapi"
|
||||
];
|
||||
ensureUsers = [
|
||||
{
|
||||
@ -25,6 +26,10 @@
|
||||
name = "plausible";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
{
|
||||
name = "wakapi";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
|
||||
checkConfig = true;
|
||||
|
49
modules/nixos/wakapi.nix
Normal file
49
modules/nixos/wakapi.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
wakapi = {
|
||||
enable = true;
|
||||
passwordSaltFile = config.sops.secrets.wakapi_salt.path;
|
||||
settings = {
|
||||
app.avatar_url_template = "https://www.gravatar.com/avatar/{email_hash}.png";
|
||||
|
||||
server = {
|
||||
port = 15999;
|
||||
public_url = "https://wakapi.tux.rs";
|
||||
};
|
||||
|
||||
db = {
|
||||
dialect = "postgres";
|
||||
host = "/run/postgresql";
|
||||
port = 5432;
|
||||
name = "wakapi";
|
||||
user = "wakapi";
|
||||
};
|
||||
|
||||
security = {
|
||||
allow_signup = false;
|
||||
disable_frontpage = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nginx = {
|
||||
enable = lib.mkForce true;
|
||||
virtualHosts = {
|
||||
"wakapi.tux.rs" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "tux.rs";
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://localhost:15999";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user