Docker hardening + first-run fixes

This commit is contained in:
Christomatt
2026-02-05 02:49:34 +01:00
parent 38ddbf8bc1
commit a686db38b0
19 changed files with 346 additions and 53 deletions
+2
View File
@@ -1,3 +1,5 @@
'use client';
import { createContext, useContext, useEffect, useState, ReactNode } from 'react';
interface RuntimeConfig {
+3 -3
View File
@@ -1,13 +1,13 @@
/**
* User-Owned S3-Compatible Storage Utilities
*
* Supports AWS S3, Cloudflare R2, Backblaze B2, Wasabi, MinIO, etc.
* Supports AWS S3, Cloudflare R2, Backblaze B2, Wasabi, and Contabo.
*/
import { S3Client, PutObjectCommand, HeadBucketCommand } from '@aws-sdk/client-s3';
import { decryptPrivateKey, deserializeEncryptedKey } from '@/lib/crypto/private-key';
export type StorageProvider = 's3' | 'r2' | 'b2' | 'wasabi' | 'minio' | 'other';
export type StorageProvider = 's3' | 'r2' | 'b2' | 'wasabi' | 'contabo';
interface S3Credentials {
endpoint?: string;
@@ -105,7 +105,7 @@ export async function uploadToUserStorage(
if (publicBaseUrl) {
url = `${publicBaseUrl.replace(/\/$/, '')}/${key}`;
} else if (endpoint) {
// Custom endpoint (MinIO, etc)
// Custom endpoint (R2, B2, Contabo)
url = `${endpoint}/${bucket}/${key}`;
} else {
// AWS S3 standard URL