summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoufic ar <contact@toufy.me>2026-07-11 16:23:35 +0300
committertoufic ar <contact@toufy.me>2026-07-11 16:23:35 +0300
commit46c7e8d98faa2bcaaf3676ae2bc2e400a4957432 (patch)
tree9b8c21b99c34e24cbf3e5b012cceedd324d1ffd6
parent433356eb8d76278e29c492d3ca91812a0c44e8b8 (diff)
downloadservers-46c7e8d98faa2bcaaf3676ae2bc2e400a4957432.tar.gz
servers-46c7e8d98faa2bcaaf3676ae2bc2e400a4957432.zip
change autopush endpoint
-rw-r--r--adonis/autopush/default.nix8
1 files changed, 2 insertions, 6 deletions
diff --git a/adonis/autopush/default.nix b/adonis/autopush/default.nix
index 2ebb256..8da3b21 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 = "${domain}";
AUTOCONNECT__ENDPOINT_PORT = builtins.toString endpointPort;
AUTOCONNECT__ROUTER_HOSTNAME = "127.0.0.1";
};
@@ -39,7 +39,7 @@ in {
AUTOEND__DB_DSN = "redis://127.0.0.1:${builtins.toString redisPort}";
AUTOEND__HOST = "0.0.0.0";
AUTOEND__PORT = builtins.toString port;
- AUTOEND__ENDPOINT_URL = "https://update.${domain}";
+ AUTOEND__ENDPOINT_URL = "https://${domain}";
};
wantedBy = ["multi-user.target"];
serviceConfig = {
@@ -52,10 +52,6 @@ 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}";
};
}