我有一个基本的 Nginx docker 映像,充当反向代理,当前使用位于我的应用程序服务器前面的基本身份验证。我正在寻找一种方法将它与我们在开发中使用 JWT 的 SSO 解决方案集成,但所有文档都说它需要 Nginx+。那么,是否可以在开源 Nginx 中进行 JWT 验证,或者我需要付费版本吗?
我试图包含 npm 的终端进度条之一,以更好地可视化一个漫长的过程的进展情况。当我从标准的“node index.js”运行它时,它会顺利运行,但是当从简单的 docker 映像运行时,没有任何内容发布到终端。我的index.js是这样的:
const _cliProgress = require('cli-progress');
// create a new progress bar instance and use shades_classic theme
const bar1 = new _cliProgress.Bar({}, _cliProgress.Presets.shades_classic);
// start the progress bar with a total value of 200 and start value of 0
bar1.start(200, 0);
// update the current value in your application..
bar1.update(100);
// stop the progress bar
bar1.stop();
Run Code Online (Sandbox Code Playgroud)
这是我的 docker 文件:
FROM node:latest
#create work directory
RUN mkdir -p /src
#establish the app folder as the work directory …Run Code Online (Sandbox Code Playgroud)