Skip to content

Commit ec45860

Browse files
committed
Add NativePHP updater configuration
1 parent 705fb0e commit ec45860

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

config/nativephp.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,43 @@
3737
* any global hotkeys, menus, windows, etc.
3838
*/
3939
'provider' => \App\Providers\NativeAppServiceProvider::class,
40+
41+
/**
42+
* The NativePHP updater configuration.
43+
*/
44+
'updater' => [
45+
/**
46+
* Whether or not the updater is enabled. Please note that the
47+
* updater will only work when your application is bundled
48+
* for production.
49+
*/
50+
'enabled' => env('NATIVEPHP_UPDATER_ENABLED', true),
51+
52+
/**
53+
* The updater provider to use.
54+
* Supported: "s3", "spaces"
55+
*/
56+
'default' => env('NATIVEPHP_UPDATER_PROVIDER', 'spaces'),
57+
58+
'providers' => [
59+
's3' => [
60+
'driver' => 's3',
61+
'key' => env('AWS_ACCESS_KEY_ID'),
62+
'secret' => env('AWS_SECRET_ACCESS_KEY'),
63+
'region' => env('AWS_DEFAULT_REGION'),
64+
'bucket' => env('AWS_BUCKET'),
65+
'endpoint' => env('AWS_ENDPOINT'),
66+
'path' => env('NATIVEPHP_UPDATER_PATH', null),
67+
],
68+
69+
'spaces' => [
70+
'driver' => 'spaces',
71+
'key' => env('DO_SPACES_KEY_ID'),
72+
'secret' => env('DO_SPACES_SECRET_ACCESS_KEY'),
73+
'name' => env('DO_SPACES_NAME'),
74+
'region' => env('DO_SPACES_REGION'),
75+
'path' => env('NATIVEPHP_UPDATER_PATH', null),
76+
],
77+
],
78+
],
4079
];

0 commit comments

Comments
 (0)