47 Commits

Author SHA1 Message Date
invario 9f05b1c134 Docker - add line in compose for dbus if using fqdn with .local domain (#1772)
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
2026-09-18 11:48:51 +02:00
Maxi Quoß 7bbe114407 feat: add /logs page, close #1756 2026-09-09 23:50:00 +02:00
Mike Pastore b5fd864320 feat: optional per-device IP address tracking via periodic ARP scan (#1763)
* feat: optional per-device ip address tracking via periodic arp scan

Adds a per-device "Track IP address" toggle (disabled by default) and a
global cron interval setting. When enabled, upsnap periodically arp-scans
the local subnets of opted-in devices with nmap and updates a device's ip
address whenever its mac address is found at a different one. Subnets are
skipped unless directly attached to the host, so routed devices are never
scanned. Uses the same nmap + CAP_NET_RAW requirements as the existing
network scan feature; no new privileges needed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test: cover ip tracking subnet helpers and nmap xml parsing

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* refactor: extract ip tracking into its own package and expand test coverage

Move the arp scan sweep out of cronjobs into a new iptracking package with
two entry points: TrackAllSubnets (the cron sweep) and TrackOneSubnet (a
single validated scan). Device lookup is now by mac address across all
tracked devices, with updates constrained to the device's own subnet.

The scannability check becomes networking.ValidateScannableSubnet, which
reports why a subnet can't be scanned and accepts any subnet overlapping a
directly attached network, so sub-blocks of an attached prefix are now
scannable. The mac-to-ip mapping moves to networking as Nmaprun.MacToIP.

Cover the subnet guard, mac normalization, skip paths, and sweep
orchestration with tests against a stubbed scanner and a real migrated
schema.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* feat: pause tracking sweeps while nobody is connected

With lazy_ping turned on, the periodic tracking sweep now skips its tick
while no realtime clients are connected, just like the ping cron, and owes
a catch-up sweep to the next client that connects: the realtime connect
hook runs one sweep only when a tick was actually skipped (or none has run
since boot), so page reloads during active use trigger nothing. This
extends lazy_ping's meaning from "pause pings when idle" to "pause
periodic network activity when idle"; the setting's description is updated
accordingly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ui: move lazy ping section below ip tracking in settings

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* disable toggle when tracking is disabled

* fix: load private store

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-08-27 20:21:51 +02:00
invario f7dc0b2113 Update docker-compose.yml (#1721)
Add note about nmap
Remove alternate entrypoint for adding packages (breaks functionality)
2026-04-01 18:57:39 +02:00
invario 1d361e3f8b update ping privileged/unprivileged logic (#1586)
* update ping privileged/unprivileged logic, add entrypoint

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* Removed entrypoint script, code in GO instead to raise NET_RAW cap

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* Rewritten to only split pingdevice func into separate GO files

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* remove runtime check

* readme: cap_net_raw=+p

* clear up

* readme: clearify linux only

* set `privileged = false` on darwin

---------

Signed-off-by: invario <67800603+invario@users.noreply.github.com>
Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-03-19 11:20:46 +01:00
invario b50951bfa3 add clarity for UPSNAP_PING_PRIVILEGED setting (#1575)
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
2026-01-13 13:57:34 +01:00
Maxi Quoß 61da5f5bf6 feat: UPSNAP_HTTP_LISTEN: check for custom addr in go 2026-01-07 15:30:03 +01:00
xiagw c75679f238 fix: update HTTP_LISTEN configuration in Dockerfile and docker-compose.yml (#1563)
* fix: update HTTP_LISTEN configuration in Dockerfile and docker-compose.yml

* cleanup HTTP_LISTEN

---------

Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-01-07 15:08:16 +01:00
Maxi Quoß fee9d605f1 fix: update interval format in docker compose 2025-03-17 11:19:36 +01:00
seriousm4x 8c52952a1e Update docker-compose version 2025-03-17 01:15:59 +01:00
Maxi Quoß ac16e982ea update docker compose to v5 2025-03-16 15:21:04 +01:00
Maxi Quoß 5dcb7b10a3 add comment for docker hub 2024-09-03 20:24:48 +02:00
VolumeData21 0e3b62c10f removed version line from docker compose yml files 2024-08-21 20:32:43 -04:00
seriousm4x b1df10c5c8 fix: docker-compose indent 2023-12-22 11:07:27 +01:00
seriousm4x 976e808d75 feat: add ping privileged env UPSNAP_PING_PRIVILEGED #207 2023-12-22 09:30:39 +01:00
seriousm4x 7bba99fc01 add UPSNAP_SCAN_TIMEOUT to docker-compose example 2023-12-22 09:22:43 +01:00
Maxi Quoß cce6823f25 feat: optional non-root docker user #207 2023-09-10 22:45:56 +02:00
Maxi Quoß 4830f43bab upgrade docker-compose to version 4 2023-08-16 12:17:59 +02:00
seriousm4x c3eb2d869c netowrk scan: use reverse dns lookup for unknown devices #105 2023-07-01 12:35:41 +02:00
Maxi Quoß c519084e78 message is prerendered and cant be changed at runtime 2023-03-05 08:40:24 +01:00
Maxi Quoß 12689b19f9 update readme with auth #42 #55 2023-03-05 07:11:54 +01:00
Maxi Quoß 3aec978570 docker-compose: make port change more clear #54 2023-02-22 16:30:01 +01:00
Maxi Quoß 3b9decd572 add container_name, fix health whitespace 2023-02-11 22:54:19 +01:00
Maxi Quoß b88f567d9f move healthcheck to dockerfile 2023-02-11 22:24:50 +01:00
Maxi Quoß a721af02b4 add info about custom packages in container 2023-02-04 14:43:15 +01:00
Maxi Quoß 4c91967d6e docker restart unless-stopped 2023-01-30 00:25:03 +01:00
Maxi Quoß bab9648d53 update readme 2023-01-29 18:02:42 +01:00
Maxi Quoß f477088404 Squashed commit of the following:
commit a506e6fee1c90d2262f25eb680686adbfb3b2be0
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 17:08:40 2023 +0100

    update docker

commit 445b735b11
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 16:31:46 2023 +0100

    dont use v

commit fb30405396
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 16:30:51 2023 +0100

    dont use v

commit 49cf2b2607
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 16:23:31 2023 +0100

    try tag

commit 57bef8bb7e
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 16:10:28 2023 +0100

    rawversion

commit 51e071bf22
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 15:58:48 2023 +0100

    try again with v

commit 4ce90f1f5f
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 15:54:10 2023 +0100

    try again with v

commit 6fd289e1a7
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 15:47:56 2023 +0100

    workflow: tags

commit 8e7d4e814f
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 15:37:54 2023 +0100

    workflow: env is broken

commit eb311bf289
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 15:30:44 2023 +0100

    workflow: env

commit fea958c4fc
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 15:26:54 2023 +0100

    workflow: env

commit 8f59fb448f
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 15:22:46 2023 +0100

    workflow: env

commit e303e7af64
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 15:20:43 2023 +0100

    workflow: docker meta image name

commit d47c21c3db
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 15:15:03 2023 +0100

    docker: fix unzip

commit 4eb1c98729
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 15:05:48 2023 +0100

    docker: unzip -q

commit fe042e0003
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 14:58:12 2023 +0100

    workflow: remove v from version

commit dd4bc6c1e7
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 14:54:19 2023 +0100

    workflow: fix url

commit 5ee9b43aff
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 14:49:08 2023 +0100

    workflow: remove v

commit 9d598b4c09
Author: Maxi Quoß <maxi@quoss.org>
Date:   Sun Jan 29 14:46:01 2023 +0100

    event tag
2023-01-29 17:11:36 +01:00
Maxi Quoß 7e7caf3643 easier docker build 2023-01-29 14:11:52 +01:00
Maxi Quoß b1d4257013 add docker build 2023-01-28 23:10:31 +01:00
Maxi Quoß 60704ae333 support postgres, mysql and sqlite #7 2022-01-16 17:46:22 +01:00
Maxi Quoß d965d17d54 use alpine image to fix #3 2022-01-15 15:29:30 +01:00
Maxi Quoß 4aebc5fb1f changed: env vars for redis and portgres 2022-01-14 15:52:25 +01:00
Maxi Quoß 776c8aae43 added wait-for-it and bump dependencies 2022-01-12 19:45:20 +01:00
seriousm4x 5e010b29dd variable doesn't work here 2021-10-15 10:21:25 +02:00
Maxi Quoß 088eee39e1 set healthcheck in dockerfile 2021-10-15 02:25:33 +02:00
Maxi Quoß f1a8fe9dbe restart unless-stopped, fix pg_isready user 2021-10-15 01:16:03 +02:00
Maxi Quoß dd2be0946c add docker health status, keep python3.9: deps not updated for 3.10 yet 2021-10-15 00:52:25 +02:00
Maxi Quoß a2755d6cdb fix db 2021-10-01 01:23:22 +02:00
Maxi Quoß 8bd5c5f94b more renaming 2021-10-01 01:03:49 +02:00
Maxi Quoß b549d4305d remove from testing 2021-09-28 00:37:02 +02:00
Maxi Quoß 45f8b1b7d2 added settings page 2021-09-28 00:22:21 +02:00
Maxi Quoß f92d4f74cf network mode host 2021-09-20 20:40:46 +02:00
Maxi Quoß 46717c2a20 using latest docker image 2021-09-19 13:22:10 +02:00
Maxi Quoß 2bf5a54c40 use redis v6 2021-09-19 02:06:56 +02:00
Maxi Quoß 52d006c75b added django channels, celery, redis, postgres, gunicorn and whitenoise 2021-09-19 01:55:14 +02:00
mq de0c68cbd4 Initial commit 2021-01-29 15:33:44 +01:00