mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-03 07:10:47 +00:00
use environment variable to store R2_BUCKET
This commit is contained in:
@@ -42,7 +42,11 @@ export abstract class DefaultServerConfig implements ServerConfig {
|
||||
r2SecretKey(): string {
|
||||
return process.env.R2_SECRET_KEY;
|
||||
}
|
||||
abstract r2Bucket(): string;
|
||||
|
||||
r2Bucket(): string {
|
||||
return process.env.R2_BUCKET;
|
||||
}
|
||||
|
||||
adminHeader(): string {
|
||||
return "x-admin-key";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user