mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 21:16:35 +05:30
29 lines
556 B
Nix
29 lines
556 B
Nix
{lib, ...}: {
|
|
services = {
|
|
ntfy-sh = {
|
|
enable = true;
|
|
settings = {
|
|
listen-http = ":7070";
|
|
base-url = "https://ntfy.tux.rs";
|
|
behind-proxy = true;
|
|
};
|
|
};
|
|
|
|
nginx = {
|
|
enable = lib.mkForce true;
|
|
virtualHosts = {
|
|
"ntfy.tux.rs" = {
|
|
forceSSL = true;
|
|
useACMEHost = "tux.rs";
|
|
locations = {
|
|
"/" = {
|
|
proxyPass = "http://localhost:7070";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|