forked from mailcarrierapp/mailcarrier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmailcarrier.php
176 lines (161 loc) · 5.95 KB
/
mailcarrier.php
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<?php
use MailCarrier\Enums\AttachmentLogStrategy;
return [
/*
|--------------------------------------------------------------------------
| Social Auth
|--------------------------------------------------------------------------
|
| Determine what Socialite driver should be used for Social Auth.
|
*/
'social_auth_driver' => env('MAILCARRIER_SOCIAL_AUTH_DRIVER'),
'api_endpoint' => [
/*
|--------------------------------------------------------------------------
| API auth guard
|--------------------------------------------------------------------------
|
| Set the guard that must be applied to protected the API endpoint.
| Use `null` to disable it.
|
*/
'auth_guard' => env('MAILCARRIER_AUTH_GUARD', 'auth:sanctum'),
/*
|--------------------------------------------------------------------------
| API auth extra middleware
|--------------------------------------------------------------------------
|
| Set the middleware that must be applied to the API endpoint.
| Use `null` to disable it.
|
*/
'extra_middleware' => [],
],
'logs' => [
/*
|--------------------------------------------------------------------------
| Prunable time period
|--------------------------------------------------------------------------
|
| Determine how old the logs must be to prune them.
| You can use a human syntax like "30 days" or "6 months".
|
*/
'prunable_period' => '3 months',
],
'attachments' => [
/*
|--------------------------------------------------------------------------
| Max attachments size
|--------------------------------------------------------------------------
|
| Define the maximum attachments files in kb.
| For example, 1024 * 5 = 5MB.
|
*/
'max_size' => 1024 * 5,
/*
|--------------------------------------------------------------------------
| Accepted mimetypes
|--------------------------------------------------------------------------
|
| Define the accepted mimetypes.
| Set it to null to accept any kind of file.
|
*/
'mimetypes' => [
'image/jpeg',
'image/png',
'image/gif',
'text/csv',
'application/vnd.ms-excel', // xls
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', // xlsx
'application/pdf',
'application/zip',
],
/*
|--------------------------------------------------------------------------
| Default attachments storage
|--------------------------------------------------------------------------
|
| Define the default storage that will be used to
| upload or download attachments.
| When an attachment is sent and saved for logs, it will be uploaded.
| When an attachment is a reference, it will be fetched.
|
*/
'disk' => env('MAILCARRIER_FILESYSTEM_DISK', env('FILESYSTEM_DISK')),
/*
|--------------------------------------------------------------------------
| Additional attachments disks
|--------------------------------------------------------------------------
|
| Define the additional disks available to pull referenced attachments.
|
*/
'additional_disks' => [],
/*
|--------------------------------------------------------------------------
| Upload path
|--------------------------------------------------------------------------
|
| Define the default path where the standard attachments will be uploaded.
|
*/
'path' => null,
/*
|--------------------------------------------------------------------------
| Log's attachment strategy
|--------------------------------------------------------------------------
|
| Define the strategy to retain attachments for logs:
| - AttachmentLogStrategy::Inline to save them encoded in the database.
| - AttachmentLogStrategy::Upload to upload them in the storage (if standard).
| - AttachmentLogStrategy::None to save only their names and sizes.
|
*/
'log_strategy' => AttachmentLogStrategy::Inline,
],
'queue' => [
/*
|--------------------------------------------------------------------------
| Emails queue
|--------------------------------------------------------------------------
|
| Allow emails to be enqueued.
|
*/
'enabled' => true,
/*
|--------------------------------------------------------------------------
| Force email queue
|--------------------------------------------------------------------------
|
| Force email to be always enqueued.
| If true, the `enqueued` boolean of the API endpoint will be ignored.
|
*/
'force' => env('MAILCARRIER_FORCE_QUEUE', false),
/*
|--------------------------------------------------------------------------
| Queue name
|--------------------------------------------------------------------------
|
| Set the queue name.
| Set it to `null` to use the default value.
|
*/
'name' => null,
/*
|--------------------------------------------------------------------------
| Queue connection
|--------------------------------------------------------------------------
|
| Set the queue connection, e.g. `sqs` or `redis`.
| Set it to `null` to use the default value.
|
*/
'connection' => null,
],
];