我使用redbird代理服务器为我的应用程序提供服务。今天我的证书过期了。如何续费?我在这个instruction上试过了,但看起来它只适用于ngnix服务器。
我的server.js
const proxy = require('redbird')({
port: 80,
xfwd: false,
letsencrypt: {
path: "certs",
port: 4444
},
ssl: {
port: 443
}
});
proxy.register("domain.com", "http://localhost:3000", {
ssl: {
letsencrypt: {
email: "email@gmail.com",
production: true
}
}
});
proxy.register("www.domain.com", "http://localhost:3000", {
ssl: {
letsencrypt: {
email: "email.com",
production: true
}
}
});文件夹结构:
drwxr-xr-x 8 root root 4096 Mar 27 22:23 certs
drwxrwxr-x 157 redbird redbird 4096 Mar 27 21:33 node_modules
-rw-rw-r-- 1 redbird redbird 142 Mar 27 21:33 package.json
-rw-rw-r-- 1 redbird redbird 887 Aug 23 22:40 server.js
-rw-rw-r-- 1 redbird redbird 48105 Mar 27 21:33 yarn.lock发布于 2019-08-25 16:48:04
我刚刚删除了certs文件夹,而redbird创建了一个带有有效证书的新certs文件夹。
https://stackoverflow.com/questions/57644416
复制相似问题