8000 Add force path style config for s3 - fixes #62 by hakanshehu · Pull Request #65 · colanode/colanode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add force path style config for s3 - fixes #62 #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/server/src/data/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export const s3Client = new S3Client({
accessKeyId: config.storage.accessKey,
secretAccessKey: config.storage.secretKey,
},
forcePathStyle: config.storage.forcePathStyle,
});
2 changes: 2 additions & 0 deletions apps/server/src/lib/config/storage.ts
8000
Original file line number Diff line numberDiff line change
Expand Up @@ -7,6 +7,7 @@ export const storageConfigSchema = z.object({
secretKey: z.string({ error: 'STORAGE_S3_SECRET_KEY is required' }),
bucket: z.string({ error: 'STORAGE_S3_BUCKET is required' }),
region: z.string({ error: 'STORAGE_S3_REGION is required' }),
forcePathStyle: z.boolean().optional(),
});

export type StorageConfig = z.infer<typeof storageConfigSchema>;
Expand All @@ -19,5 +20,6 @@ export const readStorageConfigVariables = () => {
secretKey: process.env.STORAGE_S3_SECRET_KEY,
bucket: process.env.STORAGE_S3_BUCKET,
region: process.env.STORAGE_S3_REGION,
forcePathStyle: process.env.STORAGE_S3_FORCE_PATH_STYLE === 'true',
};
};
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ services:
STORAGE_S3_SECRET_KEY: 'your_minio_password'
STORAGE_S3_BUCKET: 'colanode-avatars'
STORAGE_S3_REGION: 'us-east-1'
STORAGE_S3_FORCE_PATH_STYLE: 'true'

# ───────────────────────────────────────────────────────────────
# SMTP configuration
Expand Down
0