Версия 1.0.2 - добавлен флаг для S3.

This commit is contained in:
anibilag 2025-10-27 18:42:14 +03:00
parent 1523159151
commit 2bfce06362
3 changed files with 9 additions and 8 deletions

12
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "russcult_server", "name": "russcult_server",
"version": "1.0.0", "version": "1.0.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "russcult_server", "name": "russcult_server",
"version": "1.0.0", "version": "1.0.1",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "^3.734.0", "@aws-sdk/client-s3": "^3.734.0",
@ -32,7 +32,7 @@
"@types/cors": "^2.8.17", "@types/cors": "^2.8.17",
"@types/express": "^5.0.0", "@types/express": "^5.0.0",
"@types/jsonwebtoken": "^9.0.7", "@types/jsonwebtoken": "^9.0.7",
"@types/morgan": "^1.9.9", "@types/morgan": "^1.9.10",
"@types/multer": "^1.4.12", "@types/multer": "^1.4.12",
"@types/multer-s3": "^3.0.3", "@types/multer-s3": "^3.0.3",
"@types/node": "^22.10.7", "@types/node": "^22.10.7",
@ -2723,9 +2723,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@types/morgan": { "node_modules/@types/morgan": {
"version": "1.9.9", "version": "1.9.10",
"resolved": "https://registry.npmjs.org/@types/morgan/-/morgan-1.9.9.tgz", "resolved": "https://registry.npmjs.org/@types/morgan/-/morgan-1.9.10.tgz",
"integrity": "sha512-iRYSDKVaC6FkGSpEVVIvrRGw0DfJMiQzIn3qr2G5B3C//AWkulhXgaBd7tS9/J79GWSYMTHGs7PfI5b3Y8m+RQ==", "integrity": "sha512-sS4A1zheMvsADRVfT0lYbJ4S9lmsey8Zo2F7cnbYjWHP67Q0AwMYuuzLlkIM2N8gAbb9cubhIVFwcIN2XyYCkA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "russcult_server", "name": "russcult_server",
"version": "1.0.1", "version": "1.0.2",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
@ -35,7 +35,7 @@
"@types/cors": "^2.8.17", "@types/cors": "^2.8.17",
"@types/express": "^5.0.0", "@types/express": "^5.0.0",
"@types/jsonwebtoken": "^9.0.7", "@types/jsonwebtoken": "^9.0.7",
"@types/morgan": "^1.9.9", "@types/morgan": "^1.9.10",
"@types/multer": "^1.4.12", "@types/multer": "^1.4.12",
"@types/multer-s3": "^3.0.3", "@types/multer-s3": "^3.0.3",
"@types/node": "^22.10.7", "@types/node": "^22.10.7",

View File

@ -21,6 +21,7 @@ export const s3Client = new S3Client({
accessKeyId: ACCESS_KEY_ID, accessKeyId: ACCESS_KEY_ID,
secretAccessKey: SECRET_ACCESS_KEY, secretAccessKey: SECRET_ACCESS_KEY,
}, },
forcePathStyle: true, // Обязательно для REG.RU S3
}); });
// Наименование бакета // Наименование бакета