当前位置:网站首页>Lightweight deployment of firefoxsend temporary file sharing service using Tencent cloud
Lightweight deployment of firefoxsend temporary file sharing service using Tencent cloud
2022-06-24 10:43:00 【Fu'er】
Firefox Send It's under the flag of fox temporary Network disk , It can be The whole platform Use , Webpage operation , No add ons are required ( and No speed limit ), Can be used in any modern browser . Share in the form of hyperlinks , Files that can be shared amount of downloads 、 Time and password , After reaching the specified number of downloads or duration, the file will automatically expire , And automatically from Send Delete... From the server , In a way, it's equivalent to Burn after reading .
what's more ,Firefox Send Is a Open source software .(GitHub Address )
This means that any user can build their own Firefox Send
It is a pity , Because of the malicious use of criminals , stay 2020 year 9 month 17 Japan , Official team Mozilla Officially announce : Permanently shut down the Firefox Send service .
Let's record our deployment FirefoxSend The process of
Get ready
- A cloud server
- Install the pagoda panel
The latest Tencent cloud 618 The activity was very good , Among them Light weight 2 nucleus 4G5M It only takes... A year 288.
618 Activity Links :https://cloud.tencent.com/act/618go
Tencent cloud lightweight server link :https://cloud.tencent.com/act/pro/lighthouse2021
install
Firefox Send The basic building needs at least Node.js 10.x
Installation in Pagoda pm2 Manager and redis
stay pm2 Select the appropriate... In the manager node edition ( need 10.x Version and above )
The official installation process uses root User execution npm run build It's going to go wrong , An error is as follows :
mode: production
/var/www/send/node_modules/webpack/lib/optimize/ConcatenatedModule.js:679
throw err;
^
SyntaxError: Unexpected token (3:25)
| !(function webpackMissingModule() { var e = new Error("Cannot find module 'webcrypto-core'"); e.code = 'MODULE_NOT_FOUND'; throw e; }());
|
| class LinerError extends !(function webpackMissingModule() { var e = new Error("Cannot find module 'webcrypto-core'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()) {
| constructor() {
| super(...arguments);
...So we create a new normal user
useradd -d /home/firefoxsend -m send
cd /home/firefoxsend Enter folder , Go into execution git clone https://github.com/mozilla/send.git from GitHub Pull source code
Domestic servers pull github If it's too slow , But first https://github.com/mozilla/send/releases Download to local , Then upload it to the server
take firefoxsend Directory user permissions changed to new user send
chown -R send:send firefoxsend
Then we modify Webpack.config.js Turn off auto check ,, If you don't modify the parameters, turn off the auto check , Cannot access after binding domain name .
Add... In the position shown in the figure below disableHostCheck: true,
Then we do the installation
Switching users su send
Execute in the source folder npm install
Use :npm run build Compile the production environment .
Last run npm run prod
The visiting address is ip:1443 Don't forget to open the port
Domain access
We can use the reverse generation of the pagoda .
Add the following to the configuration file :
location /api/ws {
proxy_redirect off;
proxy_pass http://0.0.0.0:1443;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
}Need agent /api/ws This path , Because firefox-send File upload uses websocket agreement
Configure background boot
Use npm run prod After starting , close ssh, The service was shut down . We can use screen perhaps pm2 Manager to make it run in the background
At the pagoda pm2 Manager , It can be configured as shown in the figure
边栏推荐
- 进程与多线程
- [resource sharing] the 5th International Conference on civil, architectural and environmental engineering in 2022 (iccaee 2022)
- JMeter interface test tool foundation - use badboy to record JMeter script
- Quick completion guide for mechanical arm (I): development overview of mechanical arm
- Record the range of data that MySQL update will lock
- 【IEEE出版】2022年智能交通与未来出行国际会议(CSTFM 2022)
- International Symposium on energy and environmental engineering in 2022 (coeee 2022)
- Shape change loader loads jsjs special effect code
- Leetcode interview question 16.06: minimum difference
- Dedecms template file explanation and homepage label replacement
猜你喜欢

Baidu online disk download has been in the process of requesting solutions

Record the range of data that MySQL update will lock

机械臂速成小指南(二):机械臂的应用

6. package management business development

机械臂速成小指南(三):机械臂的机械结构

23. opencv - image mosaic project

3. addition, deletion, modification and query of employees

机械臂速成小指南(一):机械臂发展概况

Leetcode-223: rectangular area

Simple pricelist style code
随机推荐
23. opencv - image mosaic project
【资源分享】2022年第五届土木,建筑与环境工程国际会议(ICCAEE 2022)
Illustration miscellaneous [for archiving to prevent loss]
cuda runtime error (801) : Raw out
Niuke-top101-bm28
[IEEE publication] International Conference on natural language processing and information retrieval in 2022 (ecnlpir 2022)
24. 图像拼接大作业
图解杂项【防止丢失进行存档用的】
栈题目:括号的分数
1. project environment construction
Window function row in SQL Server_ number()rank()dense_ rank()
Spark submission parameter -- use of files
Appium automation test foundation - mobile end test environment construction (I)
Flink集群搭建以及企业级yarn集群搭建
【IEEE出版】2022年智能交通与未来出行国际会议(CSTFM 2022)
Quick completion guide for mechanical arm (I): development overview of mechanical arm
24. image mosaic operation
126. 单词接龙 II BFS
Quick completion guide for mechanical arm (zero): main contents and analysis methods of the guide
Normal equation