|
102 | 102 | /** |
103 | 103 | * The updater provider to use. |
104 | 104 | * Supported: "github", "s3", "spaces" |
| 105 | + * Note: The "s3" provider is compatible with S3-compatible services like Cloudflare R2. |
105 | 106 | */ |
106 | 107 | 'default' => env('NATIVEPHP_UPDATER_PROVIDER', 'spaces'), |
107 | 108 |
|
|
113 | 114 | 'token' => env('GITHUB_TOKEN'), |
114 | 115 | 'vPrefixedTagName' => env('GITHUB_V_PREFIXED_TAG_NAME', true), |
115 | 116 | 'private' => env('GITHUB_PRIVATE', false), |
| 117 | + 'autoupdate_token' => env('GITHUB_AUTOUPDATE_TOKEN'), // Read-only token used by the updater for private repos |
116 | 118 | 'channel' => env('GITHUB_CHANNEL', 'latest'), |
117 | 119 | 'releaseType' => env('GITHUB_RELEASE_TYPE', 'draft'), |
118 | 120 | ], |
|
125 | 127 | 'bucket' => env('AWS_BUCKET'), |
126 | 128 | 'endpoint' => env('AWS_ENDPOINT'), |
127 | 129 | 'path' => env('NATIVEPHP_UPDATER_PATH', null), |
| 130 | + /** |
| 131 | + * Optional public URL for serving updates (e.g., CDN or custom domain). |
| 132 | + * When set, updates will be downloaded from this URL instead of the S3 endpoint. |
| 133 | + * Useful for S3 with CloudFront or Cloudflare R2 with public access |
| 134 | + * Example: 'https://updates.yourdomain.com' |
| 135 | + */ |
| 136 | + 'public_url' => env('AWS_PUBLIC_URL'), |
128 | 137 | ], |
129 | 138 |
|
130 | 139 | 'spaces' => [ |
|
0 commit comments