-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathconfig-sample.php
More file actions
81 lines (75 loc) · 3.04 KB
/
config-sample.php
File metadata and controls
81 lines (75 loc) · 3.04 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
// Values here are overridden by CLI inputs.
return [
// Package names (e.g. 'Xenforo').
'source' => '',
'target' => '',
// Database table prefixes (leave blank for default).
'source_prefix' => '',
'target_prefix' => '',
// Paths to local install folders (optional, for if files need renaming).
// Even if it's not actually installed locally, just mirror its file structure for media files.
// If the platform uses subfolders for thumbnails etc, the package should figure that out.
'source_root' => '', // Example: '/source/folder'
'target_root' => '', // Example: '/target/folder'
// Relative web path to the new platform install (for links).
// If your platform is installed in the root (e.g. https://example.com is 'home'), leave this blank.
// If your platform is in a subfolder, note it here.
// (e.g. https://example.com/community would make this value 'community').
'target_webroot' => '',
// Aliases of connections.
// (If you're just editing the 2 default connections below, don't change these.)
'origin_alias' => 'discord',
'input_alias' => 'input',
'output_alias' => 'output',
// Data connections.
'connections' => [
[
'alias' => 'input',
'type' => 'database',
// @see https://laravel.com/docs/12.x/database#read-and-write-connections
'driver' => 'mysql',
'host' => 'localhost',
'port' => '3306',
'database' => 'porter',
'username' => 'porter',
'password' => 'porter',
'charset' => 'utf8mb4',
'options' => [
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => false, // Critical for large datasets.
],
],
[
'alias' => 'output',
'type' => 'database',
// @see https://laravel.com/docs/12.x/database#read-and-write-connections
'driver' => 'mysql',
'host' => 'localhost',
'port' => '3306',
'database' => 'porter',
'username' => 'porter',
'password' => 'porter',
'charset' => 'utf8mb4',
'options' => [
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => false, // Critical for large datasets.
],
],
[
'alias' => 'discord',
'type' => 'api',
// @see https://github.com/symfony/symfony/blob/8.0/src/Symfony/Contracts/HttpClient/HttpClientInterface.php
// https://symfony.com/doc/current/reference/configuration/framework.html#reference-http-client-base-uri
'base_uri' => 'https://discord.com/api/v10/', // Trailing slash required.
'token' => 'secret.token',
'extra' => [
'guild_id' => '123', // Server ID
//'channels' => ['123', '456'], // Optionally limit to certain Channel IDs
],
],
],
// Advanced options.
'option_cdn_prefix' => '',
'option_data_types' => '',
'debug' => false,
'test_alias' => 'test',
];