diff options
| author | toufic ar <contact@toufy.me> | 2026-07-11 16:18:00 +0300 |
|---|---|---|
| committer | toufic ar <contact@toufy.me> | 2026-07-11 16:18:00 +0300 |
| commit | 433356eb8d76278e29c492d3ca91812a0c44e8b8 (patch) | |
| tree | 58dbb8210a98de36c390a697fa606f18255490b0 | |
| parent | dc1907bdf311f1ab31d6da994d4027403847e646 (diff) | |
| download | servers-433356eb8d76278e29c492d3ca91812a0c44e8b8.tar.gz servers-433356eb8d76278e29c492d3ca91812a0c44e8b8.zip | |
autopush reverse proxy (i have no idea if this is remotely correct)
| -rw-r--r-- | adonis/autopush/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/adonis/autopush/default.nix b/adonis/autopush/default.nix index 6055a42..2ebb256 100644 --- a/adonis/autopush/default.nix +++ b/adonis/autopush/default.nix @@ -48,4 +48,14 @@ in { }; }; }; + + services.nginx.virtualHosts.${domain} = { + forceSSL = true; + enableACME = true; + }; + services.nginx.virtualHosts."update.${domain}" = { + forceSSL = true; + enableACME = true; + locations."/".proxyPass = "http://127.0.0.1:${builtins.toString port}"; + }; } |
