liang👍
``
``
修改nginx最大上传文件大小限制
client_max_body_size 1000m;
# 跨域配置
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
if ($request_method = 'OPTIONS') {
return 204;
}
nextcloud中的config.php文件添加
'overwriteprotocol' => 'https',
配置用来解决使用app token失败问题
解决sudo apt update
仓库 没有数字签名。错误
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys '需要生成的key'
./certbot-auto certonly -d "*.orz.show" -d "orz.show" --manual --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory
npm start
脚本 json{
"apps": [{
"name": "website",
"cwd": "./new.cloverliang.me",
"script": "npm",
"args": "start"
}, {
"name": "vue_api",
"cwd": "./vue_api",
"script": "npm",
"args": "start"
}]
}
server: {
...
gzip on; # 是否开启gzip
gzip_buffers 32 4K; #缓冲(压缩在内存中缓冲几块? 每块多大?)
gzip_comp_level 6; #推荐6 压缩级别(级别越高,压的越小,越浪费CPU计算资源)
gzip_min_length 100; #开始压缩的最小长度(再小就不要压缩了,意义不在)
gzip_types application/javascript text/css text/xml; #对哪些类型的文件用压缩 如txt,xml,html ,css
gzip_disable "MSIE [1-6]\."; #配置禁用gzip条件,支持正则。此处表示ie6及以下不启用gzip(因为ie低版本不支持)
gzip_vary on; #是否传输gzip压缩标志
}
function array_unique (arr) {
let len = arr.length
if (!len) {
return []
}
let tmp = []
for (let i = 0; i < len; i++) {
// 判断数组arr的元素是否在数组tmp中
if (tmp.findIndex((v) => JSON.stringify(v) === JSON.stringify(arr[i])) === -1) {
tmp.push(arr[i])
}
}
return tmp
}
test
no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
Host *
KexAlgorithms +diffie-hellman-group1-sha1
来源git 配置SSH error: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
啊咧,登陆后才能评论哦!