refactor: rename project from dgray.io to kashilo.com
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Directus Setup für dgray.io
|
||||
# Directus Setup für kashilo.com
|
||||
|
||||
Komplette Anleitung zur Einrichtung von Directus als Backend für die dgray Kleinanzeigen-PWA.
|
||||
Komplette Anleitung zur Einrichtung von Directus als Backend für die kashilo Kleinanzeigen-PWA.
|
||||
|
||||
**API URL**: https://api.dgray.io/
|
||||
**API URL**: https://api.kashilo.com/
|
||||
|
||||
---
|
||||
|
||||
@@ -622,8 +622,8 @@ module.exports = async function(data, { database }) {
|
||||
**Settings > Project Settings**
|
||||
|
||||
```
|
||||
Project Name: dgray.io
|
||||
Project URL: https://dgray.io
|
||||
Project Name: kashilo.com
|
||||
Project URL: https://kashilo.com
|
||||
Project Color: #555555
|
||||
```
|
||||
|
||||
@@ -637,7 +637,7 @@ services:
|
||||
image: directus/directus:latest
|
||||
environment:
|
||||
CORS_ENABLED: "true"
|
||||
CORS_ORIGIN: "https://dgray.io,https://www.dgray.io,http://localhost:8080"
|
||||
CORS_ORIGIN: "https://kashilo.com,https://www.kashilo.com,http://localhost:8080"
|
||||
CORS_METHODS: "GET,POST,PATCH,DELETE"
|
||||
CORS_ALLOWED_HEADERS: "Content-Type,Authorization"
|
||||
CORS_CREDENTIALS: "true"
|
||||
@@ -655,7 +655,7 @@ services:
|
||||
```env
|
||||
# .env
|
||||
CORS_ENABLED=true
|
||||
CORS_ORIGIN=https://dgray.io,https://www.dgray.io,http://localhost:8080
|
||||
CORS_ORIGIN=https://kashilo.com,https://www.kashilo.com,http://localhost:8080
|
||||
CORS_METHODS=GET,POST,PATCH,DELETE
|
||||
CORS_ALLOWED_HEADERS=Content-Type,Authorization
|
||||
CORS_CREDENTIALS=true
|
||||
@@ -706,7 +706,7 @@ environment:
|
||||
STORAGE_S3_DRIVER: "s3"
|
||||
STORAGE_S3_KEY: "your-access-key"
|
||||
STORAGE_S3_SECRET: "your-secret-key"
|
||||
STORAGE_S3_BUCKET: "dgray-files"
|
||||
STORAGE_S3_BUCKET: "kashilo-files"
|
||||
STORAGE_S3_REGION: "fsn1" # oder nbg1
|
||||
STORAGE_S3_ENDPOINT: "https://fsn1.your-objectstorage.com" # oder nbg1
|
||||
```
|
||||
@@ -720,7 +720,7 @@ environment:
|
||||
STORAGE_S3_DRIVER: "s3"
|
||||
STORAGE_S3_KEY: "your-access-key"
|
||||
STORAGE_S3_SECRET: "your-secret-key"
|
||||
STORAGE_S3_BUCKET: "dgray-files"
|
||||
STORAGE_S3_BUCKET: "kashilo-files"
|
||||
STORAGE_S3_REGION: "auto"
|
||||
STORAGE_S3_ENDPOINT: "https://xxx.r2.cloudflarestorage.com"
|
||||
```
|
||||
@@ -746,7 +746,7 @@ RATE_LIMITER_POINTS=100
|
||||
RATE_LIMITER_DURATION=60
|
||||
```
|
||||
|
||||
**Hinweis:** Keine E-Mail-Konfiguration nötig - dgray.io nutzt keine E-Mails (Privacy by Design).
|
||||
**Hinweis:** Keine E-Mail-Konfiguration nötig - kashilo.com nutzt keine E-Mails (Privacy by Design).
|
||||
|
||||
### 5.6 Währungsumrechnung & Preismodus
|
||||
|
||||
@@ -901,7 +901,7 @@ if (directus.isAuthenticated()) {
|
||||
|
||||
## 9. Anonyme Authentifizierung (UUID-basiert)
|
||||
|
||||
Für maximale Privatsphäre nutzt dgray.io ein UUID-basiertes Login-System ohne echte E-Mail-Adressen.
|
||||
Für maximale Privatsphäre nutzt kashilo.com ein UUID-basiertes Login-System ohne echte E-Mail-Adressen.
|
||||
|
||||
### 9.1 Konzept
|
||||
|
||||
@@ -913,7 +913,7 @@ Für maximale Privatsphäre nutzt dgray.io ein UUID-basiertes Login-System ohne
|
||||
│ f47ac10b-58cc-4372-a567-0e02b2c3d479 │
|
||||
│ ↓ │
|
||||
│ Directus erhält: │
|
||||
│ • E-Mail: f47ac10b-58cc-4372-a567-0e02b2c3d479@dgray.io │
|
||||
│ • E-Mail: f47ac10b-58cc-4372-a567-0e02b2c3d479@kashilo.com │
|
||||
│ • Passwort: f47ac10b-58cc-4372-a567-0e02b2c3d479 │
|
||||
│ ↓ │
|
||||
│ User speichert UUID → fertig │
|
||||
@@ -943,7 +943,7 @@ Für maximale Privatsphäre nutzt dgray.io ein UUID-basiertes Login-System ohne
|
||||
// Account erstellen
|
||||
async function createAnonymousAccount() {
|
||||
const uuid = crypto.randomUUID();
|
||||
const email = `${uuid}@dgray.io`;
|
||||
const email = `${uuid}@kashilo.com`;
|
||||
const password = uuid;
|
||||
|
||||
// Bei Directus registrieren
|
||||
@@ -957,7 +957,7 @@ async function createAnonymousAccount() {
|
||||
|
||||
// Login
|
||||
async function login(uuid) {
|
||||
const email = `${uuid}@dgray.io`;
|
||||
const email = `${uuid}@kashilo.com`;
|
||||
await directus.login(email, uuid);
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user