diff options
| author | toufic ar <contact@toufy.me> | 2026-07-14 16:12:33 +0300 |
|---|---|---|
| committer | toufic ar <contact@toufy.me> | 2026-07-14 16:12:33 +0300 |
| commit | cfc4d5e4f10f55c6ae3ab1124c94e8ca2dc5db1e (patch) | |
| tree | 3c5d7b48633ca420e51848f88e3fd2bdc10cafcb /adonis/autopush | |
| parent | e24816af46d4a3d80cc32730164b4c0ebd7c35ac (diff) | |
| download | servers-cfc4d5e4f10f55c6ae3ab1124c94e8ca2dc5db1e.tar.gz servers-cfc4d5e4f10f55c6ae3ab1124c94e8ca2dc5db1e.zip | |
autopush: change updates subdomain
Diffstat (limited to 'adonis/autopush')
| -rw-r--r-- | adonis/autopush/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/adonis/autopush/default.nix b/adonis/autopush/default.nix index 525eb07..a527be9 100644 --- a/adonis/autopush/default.nix +++ b/adonis/autopush/default.nix @@ -24,7 +24,7 @@ in { environment = { AUTOCONNECT__DB_DSN = "redis://127.0.0.1:${builtins.toString redisPort}"; AUTOCONNECT__ENDPOINT_SCHEME = "https"; - AUTOCONNECT__ENDPOINT_HOSTNAME = "update.${domain}"; + AUTOCONNECT__ENDPOINT_HOSTNAME = "updates.${domain}"; AUTOCONNECT__ENDPOINT_PORT = builtins.toString endpointPort; AUTOCONNECT__ROUTER_HOSTNAME = "127.0.0.1"; }; @@ -37,9 +37,9 @@ in { autopush-autoendpoint = { environment = { AUTOEND__DB_DSN = "redis://127.0.0.1:${builtins.toString redisPort}"; - AUTOEND__HOST = "0.0.0.0"; + AUTOEND__HOST = "127.0.0.1"; AUTOEND__PORT = builtins.toString port; - AUTOEND__ENDPOINT_URL = "https://update.${domain}"; + AUTOEND__ENDPOINT_URL = "https://updates.${domain}"; }; wantedBy = ["multi-user.target"]; serviceConfig = { @@ -53,7 +53,7 @@ in { enableACME = true; locations."/".proxyPass = "http://127.0.0.1:8080"; }; - services.nginx.virtualHosts."update.${domain}" = { + services.nginx.virtualHosts."updates.${domain}" = { forceSSL = true; enableACME = true; locations."/".proxyPass = "http://127.0.0.1:${builtins.toString port}"; |
