mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-06 17:56:35 +05:30
51 lines
1.0 KiB
Nix
51 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
services = {
|
|
wakapi = {
|
|
enable = true;
|
|
passwordSaltFile = config.sops.secrets.wakapi_salt.path;
|
|
database.createLocally = true;
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|