From 7186b9cd8bd7f688cd8dc86755dfe408f428827e Mon Sep 17 00:00:00 2001 From: Franco Masotti Date: Thu, 18 Nov 2021 00:08:51 +0100 Subject: [PATCH] Minor fixes. --- .pre-commit-config.yaml | 2 +- Makefile | 8 +++++++- Pipfile | 7 +------ privacy_policy.md | 6 ++++-- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6879e6e..050980b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - id: debug-statements - repo: https://github.com/frnmst/md-toc - rev: '8.0.0' # or a specific git tag from md-toc + rev: '8.0.1' # or a specific git tag from md-toc hooks: - id: md-toc args: [-p, 'github', '-l6'] # CLI options diff --git a/Makefile b/Makefile index 69e3950..a15ff87 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,14 @@ default: install-dev install-dev: pipenv install --dev pipenv run pre-commit install + pipenv graph + pipenv check uninstall-dev: + rm -f Pipfile.lock pipenv --rm -.PHONY: default install-dev uninstall-dev +update: install-dev + pipenv run pre-commit autoupdate + +.PHONY: default install-dev uninstall-dev update diff --git a/Pipfile b/Pipfile index 6559b7f..3427ac3 100644 --- a/Pipfile +++ b/Pipfile @@ -3,10 +3,5 @@ url = "https://pypi.org/simple" verify_ssl = true name = "pypi" -[packages] - [dev-packages] -pre-commit = '~=2.13' - -[requires] -python_version = "*" +pre-commit = '>=2,<3' diff --git a/privacy_policy.md b/privacy_policy.md index e1247d1..24d0406 100644 --- a/privacy_policy.md +++ b/privacy_policy.md @@ -30,6 +30,7 @@ stored in a log file in this form: Variables are marked with `${}`. These logs are rotated daily and kept for 7 days. +The reason for this is to enable an abuse protection system through [Fail2Ban](https://www.fail2ban.org/wiki/index.php/Main_Page). I have NO interest in: - selling this information @@ -40,15 +41,16 @@ I have NO interest in: To protect your privacy, as an alternative, an onion address is available for this instance: http://jb2xdimn4cuoty3igqh3qknyt7ls6hwswzwl7xmieheemsjuirvqcaad.onion + Bare in mind that git cloning over HTTP has been disabled for the moment because my instance of Fail2Ban is configured to ignore localhost. All traffic from TOR is infact marked as coming from localhost by Apache and Gitea, for example: 127.0.0.1 - - [08/Mar/2021:10:03:02 +0100] "GET /user/avatar/frnmst/290 HTTP/1.1" 302 64 -If you want to clone repositories through TOR it is sufficient to use torsocks. For example +If you want to clone repositories through TOR it is sufficient to use torsocks. For example: - torsocks git clone https://software.franco.net.eu.org/frnmst/blog.git + torsocks --isolate git clone https://software.franco.net.eu.org/frnmst/blog.git ## Cookie policy