我使用redbird代理服务器来服务我的应用程序。今天我的证书过期了。我怎样才能把它换新?我通过这个说明尝试过,但是看起来它只适用于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 08:49:07
我刚刚删除了certs文件夹,redbird使用有效的证书创建了新的certs文件夹。
https://unix.stackexchange.com/questions/537294
复制相似问题