Skip to content

Commit 178ca82

Browse files
wowi42davlgd
authored andcommitted
Remove useless parts
1 parent 0e1b733 commit 178ca82

File tree

1 file changed

+10
-39
lines changed

1 file changed

+10
-39
lines changed

content/guides/send.md

Lines changed: 10 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
---
22
title: 'Send'
3-
description:
3+
description: "Simple, private file sharing"
44
tags:
55
- guides
66
keywords:
7-
-
7+
- wetransfer
8+
- nodejs
9+
- javascript
10+
- redis
11+
- cellar
12+
- s3
813

914
draft: false
10-
type: docs
15+
type: send
1116
---
1217

1318
{{< hextra/hero-subtitle >}}
@@ -16,7 +21,7 @@ type: docs
1621

1722
## Send architecture overview
1823

19-
[Send](https://github.com/timvisee/send) is a Node.js application that provides secure file sharing with automatic expiration. It uses Redis for metadata storage and supports multiple storage backends including local filesystem, S3-compatible services, and Google Cloud Storage.
24+
[Send](https://github.com/timvisee/send) is a Node.js application providing secure file sharing with automatic expiration. It uses Redis for metadata storage and supports multiple storage backends including local filesystem, S3-compatible services, and Google Cloud Storage.
2025

2126
```mermaid
2227
flowchart TD
@@ -34,7 +39,7 @@ flowchart TD
3439

3540
Before deploying Send on Clever Cloud, make sure you have:
3641

37-
- **Node.js 16.x** (required by Send)
42+
- **Node.js 16.x**
3843
- **Redis** for metadata storage
3944
- **Cellar S3** for file storage
4045
- **Clever Tools CLI** ([documentation](https://www.clever-cloud.com/developers/doc/cli/))
@@ -75,39 +80,6 @@ and configure a bucket for send "send-storage-bucket"
7580

7681
Check the docs for more information https://www.clever-cloud.com/developers/doc/addons/cellar/
7782

78-
#### Configure bucket policy for public read access
79-
80-
Create a `policy.json` file for public read access:
81-
82-
```json
83-
{
84-
"Id": "Policy1587216857769",
85-
"Version": "2012-10-17",
86-
"Statement": [
87-
{
88-
"Sid": "Stmt1587216727444",
89-
"Action": [
90-
"s3:GetObject"
91-
],
92-
"Effect": "Allow",
93-
"Resource": "arn:aws:s3:::send-storage-bucket/*",
94-
"Principal": "*"
95-
}
96-
]
97-
}
98-
```
99-
100-
Apply the policy using s3cmd:
101-
102-
```bash
103-
# Apply the public read policy
104-
s3cmd setpolicy ./policy.json s3://send-storage-bucket
105-
106-
# Verify the policy is applied
107-
s3cmd info s3://send-storage-bucket
108-
```
109-
110-
11183
### 4. Create and configure Node.js application
11284

11385
Create the Node.js application on Clever Cloud:
@@ -128,7 +100,6 @@ Set Node.js version and basic configuration:
128100
```bash
129101
# Set Node.js version and environment
130102
clever env set CC_NODE_VERSION 16
131-
clever env set NODE_ENV production
132103
clever env set PORT 8080
133104
clever env set CC_POST_BUILD_HOOK "npm install && npm install -g rimraf && npm run build"
134105
```

0 commit comments

Comments
 (0)