-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
58 lines (51 loc) · 2.36 KB
/
config.php
File metadata and controls
58 lines (51 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* FigDeck Bridge – Standardkonfiguration (Fallback)
* Wird nur genutzt, wenn keine Werte aus Nextcloud-AppConfig vorhanden sind.
*
* 🔹 Innerhalb von Nextcloud werden diese Werte dynamisch überschrieben.
* 🔹 Du kannst diese Datei für lokale Tests oder CLI-Syncs verwenden.
*/
return [
// ---------------------------------------------
// 🔐 Nextcloud Deck Zugriff
// ---------------------------------------------
'deck_url' => 'https://cloud.example.com', // Basis-URL deiner Nextcloud
'deck_user' => 'app-user', // Standard-User oder App-Passwort
'deck_token' => 'app-password', // App-spezifisches Passwort
'deck_api_path'=> '/index.php/apps/deck/api/v1.1',
// ---------------------------------------------
// 🎨 Figma API Zugangsdaten (werden meist aus AppConfig gelesen)
// ---------------------------------------------
'client_id' => '', // wird über Admin-UI gesetzt
'client_secret' => '',
'redirect_uri' => '', // wird automatisch berechnet → siehe ApiController
'token_file' => __DIR__ . '/figma_token.json',
// ---------------------------------------------
// 🗂️ Projekt-/Board-Zuordnung (Mapping)
// ---------------------------------------------
// Diese Datei speichert, welches Figma-Projekt welchem Deck-Board zugeordnet ist.
// Sie wird automatisch durch die Admin- oder API-Funktion geschrieben.
'mapping_file' => __DIR__ . '/mappings.json',
// Optional: Fallback, falls keine Mapping-Datei existiert
'file_key' => '',
'board_id' => 0,
'stack_id' => 0,
// Alternativ können hier mehrere Zuordnungen direkt hinterlegt werden
'file_mappings' => [
// [
// 'file_key' => 'AbCdEfGh123',
// 'board_id' => 12,
// 'stack_id' => 34,
// ],
],
// ---------------------------------------------
// 📁 Lokale Datenspeicher
// ---------------------------------------------
'data_file' => __DIR__ . '/last_comments.json', // speichert bereits importierte Figma-Kommentare
'log_file' => __DIR__ . '/deck_log.txt',
// ---------------------------------------------
// ⚙️ Synchronisationsoptionen
// ---------------------------------------------
'mode' => 'manual', // oder 'cron' (automatisch durch Nextcloud Cron)
];