Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

✨ Add Reverse proxy support #34

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

fuergaosi233
Copy link
Contributor

No description provided.

@gengjiawen
Copy link
Contributor

我测试了下,会报 invalid token

@fuergaosi233
Copy link
Contributor Author

抱歉 是我的 Cache 部分写的有问题, 刚刚修复掉了

@gengjiawen
Copy link
Contributor

gengjiawen commented Feb 27, 2023

抱歉 是我的 Cache 部分写的有问题, 刚刚修复掉了

可以了。

请教下这个 token 可以自动刷新吗?

看了下代码,可以自动刷新token。

import { config } from "./lib";
const getDataBasePath = () => {
if (process.env.NODE_ENV === "production") {
return "/tmp/cache.json";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个生产环境为啥不和 dev 环境保持一致,更新docker镜像就没了吧,是担心产生兼容性问题吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对于一些 faas 环境,文件系统可能是只读的,所以选择了放到了 TMP 目录, 目前的 Docker 服务启动的时候应该不会主动配置 PROD, 所以这里不会触发。

@gengjiawen
Copy link
Contributor

@fuergaosi233 merge了不?

@gengjiawen
Copy link
Contributor

悲报: 接口加了人机验证

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants