Skip to content

Commit

Permalink
就这补全能力, AI还替代人类?
Browse files Browse the repository at this point in the history
  • Loading branch information
lutinglt committed Nov 24, 2024
1 parent e953d45 commit 9cdcb42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime &&\
# 安装数据库驱动
pip install psycopg2 mysqlclient &&\
# 开箱即用配置, 配置安全密钥和关闭安全验证
sed -i "s/.*SECRET_KEY =.*/SECRET_KEY = \"superset\"/" /app/superset/config.py &&\
sed -i "s/SECRET_KEY =.*/SECRET_KEY = \"superset\"/" /app/superset/config.py &&\
sed -i "s/WTF_CSRF_ENABLED = True/WTF_CSRF_ENABLED = False/" /app/superset/config.py &&\
sed -i "s/.*TALISMAN_ENABLED.*/TALISMAN_ENABLED = False/" /app/superset/config.py &&\
sed -i "s/TALISMAN_ENABLED =.*/TALISMAN_ENABLED = False/" /app/superset/config.py &&\
# 默认语言
sed -i "s/BABEL_DEFAULT_LOCALE = \"en\"/BABEL_DEFAULT_LOCALE = \"zh\"/" /app/superset/config.py &&\
# 打开语言切换
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#### 开箱即用

基于官方镜像生成, 修复了汉化问题, 仅保留中文和英文两种语言并且默认显示中文, 默认时区上海, 并添加了 PostgreSQL 和 MySQL 数据库驱动.
为了做到开箱即用, 修改了以下默认配置:
为了做到开箱即用, 修改了以下默认配置 (不推荐生产使用):

```python
SECRET_KEY = 'superset'
Expand Down Expand Up @@ -66,8 +66,9 @@ services:
> [!NOTE]
>
> superset_config.py 会覆盖 config.py 里的配置, 优先级更高.
> SECRET_KEY 会用来签名 cookie 和加密 Superset 存储在数据库中的敏感数据
> 推荐使用 `openssl rand -base64 42` 命令生成一个足够复杂的安全密钥,
> 推荐使用 `openssl rand -base64 42` 命令生成一个足够复杂的安全密钥

```python
SECRET_KEY = 'superset'
Expand Down

0 comments on commit 9cdcb42

Please sign in to comment.