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

View File

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

View File

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