mirror of
https://github.com/pacnpal/simpleguardhome.git
synced 2026-03-22 17:46:04 -04:00
Compare commits
11 Commits
143f2025fa
...
af25739ab6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af25739ab6 | ||
|
|
0e6f5d0075 | ||
|
|
3cf0402785 | ||
|
|
2a3c975407 | ||
|
|
b2ca81e9a1 | ||
|
|
f858a2a9ba | ||
|
|
a16e15a880 | ||
|
|
8c34d211e3 | ||
|
|
f52e2d0956 | ||
|
|
b4135d05eb | ||
|
|
78c776da5c |
@@ -8,6 +8,9 @@
|
||||
<a href="https://github.com/pacnpal/simpleguardhome/releases"><img src="https://img.shields.io/badge/version-0.1.0-blue.svg" alt="Version 0.1.0"></a>
|
||||
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="MIT License"></a>
|
||||
<a href="#requirements"><img src="https://img.shields.io/badge/python-3.7+-blue.svg" alt="Python 3.7+"></a>
|
||||
<a href="https://github.com/pacnpal/simpleguardhome/actions/workflows/docker-build.yml"><img src="https://github.com/pacnpal/simpleguardhome/actions/workflows/docker-build.yml/badge.svg" alt="Docker Build Status"></a>
|
||||
<a href="https://hub.docker.com/r/pacnpal/simpleguardhome"><img src="https://img.shields.io/docker/pulls/pacnpal/simpleguardhome" alt="Docker Pulls"></a>
|
||||
<a href="https://hub.docker.com/r/pacnpal/simpleguardhome"><img src="https://img.shields.io/docker/image-size/pacnpal/simpleguardhome/latest" alt="Docker Image Size"></a>
|
||||
</p>
|
||||
|
||||
A modern web application for checking and adding domains to custom filtering rules in AdGuard Home. Built with FastAPI and modern JavaScript, following the official AdGuard Home OpenAPI specification. Meant as a simple AdGuard Home web interface for users to check if a domain is blocked, and then add it.
|
||||
|
||||
@@ -5,9 +5,8 @@ import os
|
||||
|
||||
def check_health():
|
||||
try:
|
||||
host = os.environ.get('ADGUARD_HOST', 'localhost')
|
||||
port = os.environ.get('ADGUARD_PORT', '8000')
|
||||
url = f'http://{host}:{port}/health'
|
||||
port = os.environ.get('APP_PORT', '8000')
|
||||
url = f'http://localhost:{port}/health'
|
||||
with httpx.Client() as client:
|
||||
response = client.get(url)
|
||||
response.raise_for_status()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
fastapi==0.128.0
|
||||
fastapi==0.128.8
|
||||
uvicorn==0.39.0
|
||||
python-dotenv==1.2.1
|
||||
httpx==0.28.1
|
||||
@@ -6,6 +6,6 @@ pydantic==2.12.5
|
||||
pydantic-settings==2.11.0
|
||||
pytest>=7.4.4
|
||||
pytest-asyncio>=0.25.2
|
||||
python-multipart==0.0.20
|
||||
python-multipart==0.0.22
|
||||
jinja2==3.1.6
|
||||
slowapi==0.1.9
|
||||
Reference in New Issue
Block a user