]> git.menne-pb.de Git - pinpoint.git/commitdiff
Add minio
authorJörn Menne <jmenne@fedora.de>
Wed, 12 Feb 2025 11:20:38 +0000 (12:20 +0100)
committerJörn Menne <jmenne@fedora.de>
Wed, 12 Feb 2025 11:20:38 +0000 (12:20 +0100)
doc/info/model-info.rst
georeport/views.py
pinpoint_report/settings.py
requirements.txt

index 5f402d8534b90be4d71038d4719d6d5e905bb6f4..26379889b8e25cccf385bc9c20cdbadf8898fd68 100644 (file)
@@ -14,6 +14,8 @@ reports.
 
 The structure of the database is shown in the following diagram.
 
+.. TODO: Update Diagram 
+
 
 .. mermaid::
 
index 365e37a323931d59113bb3a8da3261566e66d2d2..d3bd53ff3e5a648f0a1e5b06576e16c5bd3b1e49 100644 (file)
@@ -157,6 +157,7 @@ def report_detail_view(request, id):
 
 # TODO: Finish Link
 # TODO: Tests
+@require_GET
 def close_with_link_view(request, b64nonce, b64ct):
     nonce = urlsafe_b64decode(b64nonce)
     ct = urlsafe_b64decode(b64ct)
index e5ea4c699b234338e2b2397986bc16734c26451e..c4dfc8f0982476c3d28a2e467203fbe503865cf2 100644 (file)
@@ -13,6 +13,7 @@ https://docs.djangoproject.com/en/5.1/ref/settings/
 import sys
 from pathlib import Path
 from Crypto.Random import get_random_bytes
+from minio import Minio
 
 
 # Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -155,3 +156,13 @@ DEFAULT_FROM_EMAIL = "example@pinpoint-report.de"
 # Setup for ciphers
 # WARNING: It is advised to use a fixes 32 byte string in production
 KEY = get_random_bytes(32)
+
+# Minio
+MINIO_HOST = "localhost"
+MINIO_PORT = 9000
+MINIO_ACCESS_KEY = "minio"
+MINIO_SECRET_KEY = "minio123"
+
+client = Minio(
+    f"{MINIO_HOST}:{MINIO_PORT}", access_key=MINIO_ACCESS_KEY, secret_key=SECRET_KEY
+)
index de7227042c19726a0edcb1831dabb0f793474a19..71e46000cd24cae9d2bc3afb8fac3f743d862d20 100644 (file)
@@ -4,3 +4,6 @@ django-debug-toolbar
 
 # Crypto
 pycryptodome
+
+# minio
+minio