From aa8692deeefd6f83d7d1f54e634b15d6cdb71910 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 28 Feb 2024 01:20:27 -0800 Subject: [PATCH] Oh my god it was a switch nsp manager. Replace the "NUT" nsp manager with a real networkupstools docker server --- fighter/config/networkupstools/.env | 1 - .../config/networkupstools/docker-compose.yml | 22 +++++-------------- fighter/config/networkupstools/nut.env | 13 ++++++----- 3 files changed, 12 insertions(+), 24 deletions(-) delete mode 100644 fighter/config/networkupstools/.env diff --git a/fighter/config/networkupstools/.env b/fighter/config/networkupstools/.env deleted file mode 100644 index 1a00dee..0000000 --- a/fighter/config/networkupstools/.env +++ /dev/null @@ -1 +0,0 @@ -DOCKER_DATA=/home/admin/data/networkupstools \ No newline at end of file diff --git a/fighter/config/networkupstools/docker-compose.yml b/fighter/config/networkupstools/docker-compose.yml index 02c640e..600ae6f 100644 --- a/fighter/config/networkupstools/docker-compose.yml +++ b/fighter/config/networkupstools/docker-compose.yml @@ -1,24 +1,12 @@ version: "3" services: nut: - image: shawly/nut + image: upshift/nut-upsd container_name: networkupstools_nut env_file: - path: ./nut.env required: true - networks: - - web - volumes: - - "$DOCKER_DATA/titles:/nut/titles:rw" - - "$DOCKER_DATA/conf:/nut/conf:rw" - - "$DOCKER_DATA/_NSPOUT:/nut/_NSPOUT:rw" - - "$DOCKER_DATA/titledb:/nut/titledb:rw" - labels: - - traefik.http.routers.nut.rule=Host(`nut.jafner.net`) - - traefik.http.routers.nut.tls.certresolver=lets-encrypt - - traefik.http.routers.nut.middlewares=lan-only@file - - traefik.http.services.nut.loadbalancer.server.port=9000 - -networks: - web: - external: true \ No newline at end of file + ports: + - 3493:3493 + devices: + - "/dev/bus/usb/001/005" \ No newline at end of file diff --git a/fighter/config/networkupstools/nut.env b/fighter/config/networkupstools/nut.env index 7f39033..90cdca5 100644 --- a/fighter/config/networkupstools/nut.env +++ b/fighter/config/networkupstools/nut.env @@ -1,6 +1,7 @@ -TZ=America/Los_Angeles -USER_ID=1001 -GROUP_ID=1001 -TITLEDB_REGION=US -TITLEDB_LANGUAGE=en -#NUT_API_SCHEDULES='"[{"scan":"0/30 * * * *}]"' \ No newline at end of file +#SHUTDOWN_CMD=echo 'System shutdown not configured!' +UPS_NAME=EATON5PX1500RT +UPS_DESC=Eaton 5PX1500RT +UPS_DRIVER=snmp-ups +UPS_PORT=auto +#API_USER= +#API_PASSWORD= \ No newline at end of file