@@ -94,7 +94,7 @@ Pe jumper, LAN-ul trebuie servit direct de `dnscrypt-proxy` pe `192.168.2.100:53 |
||
| 94 | 94 |
Routerul DHCP `192.168.2.1` împinge evenimente de lease către Madagascar Local Authority prin: |
| 95 | 95 |
|
| 96 | 96 |
```text |
| 97 |
-POST https://hosts.madagascar.xdev.ro/api/collect/dhcp-leases |
|
| 97 |
+POST https://192.168.2.100/api/collect/dhcp-leases |
|
| 98 | 98 |
X-DHCP-Push-Token: <HOST_MANAGER_DHCP_PUSH_TOKEN> |
| 99 | 99 |
``` |
| 100 | 100 |
|
@@ -110,7 +110,7 @@ Nu se adaugă wildcard local. Doar acest nume exact trebuie publicat. |
||
| 110 | 110 |
Lease-urile DHCP de pe routerul `192.168.2.1` sunt colectate prin push HTTP de pe MikroTik către: |
| 111 | 111 |
|
| 112 | 112 |
```text |
| 113 |
-POST https://hosts.madagascar.xdev.ro/api/collect/dhcp-leases |
|
| 113 |
+POST https://192.168.2.100/api/collect/dhcp-leases |
|
| 114 | 114 |
``` |
| 115 | 115 |
|
| 116 | 116 |
Setează `HOST_MANAGER_DHCP_PUSH_TOKEN` în `/etc/xdev/host-manager.env` și același token în `deploy/mikrotik/dhcp-lease-push.rsc` înainte de importul pe router. Endpoint-ul acceptă headerul `X-DHCP-Push-Token` sau `Authorization: Bearer ...` și scrie observații în `dhcp_leases`. |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 |
# Edit hostManagerDhcpPushToken before import. If the DHCP server already has a |
| 4 | 4 |
# lease-script, merge this source manually instead of overwriting it. |
| 5 | 5 |
|
| 6 |
-:global hostManagerDhcpPushUrl "https://hosts.madagascar.xdev.ro/api/collect/dhcp-leases"; |
|
| 6 |
+:global hostManagerDhcpPushUrl "https://192.168.2.100/api/collect/dhcp-leases"; |
|
| 7 | 7 |
:global hostManagerDhcpPushToken "CHANGE_ME_DHCP_PUSH_TOKEN"; |
| 8 | 8 |
|
| 9 | 9 |
/ip dhcp-server set [find] lease-script={
|