atoy3731 / adguard-sync Goto Github PK
View Code? Open in Web Editor NEWSync tool for local Adguard Home DNS instances
License: Apache License 2.0
Sync tool for local Adguard Home DNS instances
License: Apache License 2.0
Im running primary Adguard on the OPNsense and port 80 is used.
And primary Adguard admin GUI running on port 3000
-e "ADGUARD_PRIMARY=http://192.168.1.2:3000" \
Im getting an error:
Running Adguard Sync for 'http://192.168.1.2:3000' => 'http://192.168.1.5'.
It worked for a long time, thank you very much, and then I noticed that it stopped synchronizing with an error:
ERROR: Unable to acquire cookie.
Message: only content-type application/json is allowed
All 3 containers are the latest.
Hi,
I'm just trying out AGHsync for the first time and I'm getting this error but have no idea where to go from here.
Running Adguard Sync for 'http://10.79.1.108' => 'http://10.79.8.2'..,
Traceback (most recent call last):,
File "app.py", line 89, in <module>,
custom_rules.reconcile(primary_filtering_status, secondary_filtering_status, ADGUARD_SECONDARY, secondary_cookie),
File "/opt/app/custom_rules/__init__.py", line 53, in reconcile,
secondary_custom_rules = _get_custom_rules(secondary_filtering_status),
File "/opt/app/custom_rules/__init__.py", line 17, in _get_custom_rules,
custom_rules_str = '\n'.join(custom_rules_array),
TypeError: can only join an iterable,
Any help would be appreciated.
Currently a majority of filter metadata can be pulled from a single backend request, but it is being pulled for every individual element. One request to the status
endpoint per reconciliation loop should suffice.
Thanks for creating this software, it will be very handy for me when I get it up and running. I'm having some issues and wondered if you could help?
Here is my environment:
Primary AdGuard host
Secondary AdGuard host
adguard-sync docker-compose.yml file contents
version: "3.3"
services:
agsync:
image: atoy3731/adguard-sync:latest
container_name: agsync
hostname: agsync
restart: always
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- ADGUARD_PRIMARY=http://192.168.88.174:3000
- ADGUARD_SECONDARY=http://192.168.88.35:3000
- ADGUARD_USER=admin
- ADGUARD_PASS=********************************
- REFRESH_INTERVAL_SECS=10
Issue
When I do a docker-compose up -d on the adguard-sync folder, it gets created and starts running. However when I tail the logs with docker logs -tf adguard-sync it just has a single entry as follows:
2021-12-21T23:04:15.314397989Z Running Adguard Sync for 'http://192.168.88.174:3000' => 'http://192.168.88.35:3000'..
No further entries ever appear, and when I make changes to the configuration of my primary AdGuard container, they never get synchronised to the secondary one. Any ideas what might be going wrong in my setup?
It would be great if this could sync the settings of each deployment as well rather than just the blacklists/whitelists.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.