Update
This commit is contained in:
parent
29905a460b
commit
325f8e9d15
@ -2,8 +2,8 @@
|
|||||||
# https://mynixos.com/nixpkgs/options/services.ntfy-sh
|
# https://mynixos.com/nixpkgs/options/services.ntfy-sh
|
||||||
let
|
let
|
||||||
hostname = "ntfy.anotherhadi.com";
|
hostname = "ntfy.anotherhadi.com";
|
||||||
url = "https://" + hostname;
|
|
||||||
port = 8082;
|
port = 8082;
|
||||||
|
url = "https://" + hostname + ":" + port;
|
||||||
in {
|
in {
|
||||||
services.ntfy-sh = {
|
services.ntfy-sh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -17,7 +17,6 @@ in {
|
|||||||
};
|
};
|
||||||
services.nginx.virtualHosts.${hostname} = {
|
services.nginx.virtualHosts.${hostname} = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
|
||||||
locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; };
|
locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; };
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [ port ];
|
networking.firewall.allowedTCPPorts = [ port ];
|
||||||
|
Loading…
Reference in New Issue
Block a user