-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Jeffrey04/20240910-log-requests
20240910 log requests
- Loading branch information
Showing
10 changed files
with
210 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
export PATH="/root/.local/bin:${PATH}" | ||
|
||
# install pipx | ||
apt-get update && apt-get install --no-install-suggests --no-install-recommends --yes pipx | ||
|
||
# install poetry | ||
pipx install poetry | ||
# poetry install | ||
poetry install --only=main | ||
|
||
poetry run python manage.py migrate |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
NETWORK="${DOCKER_NETWORK:-blockedornot}" | ||
|
||
podman run \ | ||
--rm -it \ | ||
--env-file .env \ | ||
--mount type=bind,source="$(pwd)",target=/project \ | ||
--workdir /project \ | ||
--network "$NETWORK" \ | ||
python:3.11-slim bash podman/backend-migrate/migrate.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Generated by Django 5.1.1 on 2024-09-10 14:13 | ||
|
||
import datetime | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Query', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('query', models.CharField()), | ||
('query_cleaned', models.CharField()), | ||
('dns_public_result', models.CharField()), | ||
('dns_public', models.CharField()), | ||
('dns_isp_result', models.CharField()), | ||
('dns_isp', models.CharField()), | ||
('blocked', models.BooleanField()), | ||
('different_ip', models.BooleanField()), | ||
('measurement_url', models.CharField(blank=True)), | ||
('creation_time', models.DateTimeField(default=datetime.datetime(2024, 9, 10, 14, 13, 22, 498677))), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
from datetime import datetime | ||
|
||
from django.db import models | ||
|
||
# Create your models here. | ||
|
||
class Query(models.Model): | ||
query = models.CharField() | ||
query_cleaned = models.CharField() | ||
|
||
dns_public_result = models.CharField() | ||
dns_public = models.CharField() | ||
|
||
dns_isp_result = models.CharField() | ||
dns_isp = models.CharField() | ||
|
||
blocked = models.BooleanField() | ||
different_ip = models.BooleanField() | ||
measurement_url = models.CharField(blank=True) | ||
|
||
creation_time = models.DateTimeField(default=datetime.now()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters