blob: f3ab04f55c5c7ba106c65b61da9f19d17f95439b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ ... }: let
# Enable HTTPS stuff.
useACME = true;
in {
config = {
# Start the proxied service.
services.push-notification-api = {
enable = true;
};
# Register domain name.
services.cloudflare-dyndns.domains = ["notifications.linus.onl"];
# Use NGINX as reverse proxy.
services.nginx.virtualHosts."notifications.linus.onl" = {
enableACME = useACME;
forceSSL = useACME;
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://unix:/run/push-notification-api.sock";
};
};
};
}
|