最近想用Firefox Send发现官网打不开了,如下报错。
Firefox Send is temporarily unavailable while we work on product improvements. We appreciate your patience while we make the Firefox Send experience better.
然后尝试在自己VPS上建一个。
#安装Docker
curl -ssl https://get.docker.com | sh
#启动Docker
systemctl start docker
#安装Redis
docker pull redis:latest
docker run --name docker-redis-server -p 6379:6379 --restart=always -d redis redis-server --appendonly yes
#安装Send
docker pull mozilla/send
docker run --net=host --restart=always -e 'REDIS_HOST=127.0.0.1' -e 'NODE_ENV=production' mozilla/send:latest
#此时访问IP:1443应该已经可以正常访问,但是无法传文件。
#安装Nginx反代https
yum install nginx
#生成SSL证书
openssl genrsa -des3 -out https.key 1024
openssl req -new -key https.key -out https.csr
cp https.key https.key.org
openssl rsa -in https.key.org -out https.key
openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.crt
#配置Nginx
vim /etc/nginx/nginx.conf
#如下配置
server {
listen 443 ssl;
server_name localhost;
ssl_certificate /路径/https.crt;
ssl_certificate_key /路径/https.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_pass http://0.0.0.0:1443;
}
#启动Nginx,访问https://IP 应该就正常了
systemctl start nginx
正文完