diff --git a/README.md b/README.md index 7ff57367..595217d8 100644 --- a/README.md +++ b/README.md @@ -42,12 +42,13 @@ pattern, use templates to transform it to your heart's content! | data access | dao / mapper | crud | | model | model / entity | model | -## Online preview +## Online Demo -Unfortunately, we don't have the funds to provide an online preview, you can deploy by checking -out [local-development](#local-development), or directly using [Docker](#docker-deploy) -to deploy, or at [fastapi_best_architecture_ui](https://github.com/fastapi-practices/fastapi_best_architecture_ui) -See a preview of some of the screenshots +You can view some of the preview screenshots +in [fastapi_best_architecture_ui](https://github.com/fastapi-practices/fastapi_best_architecture_ui) + +Luckily, we now have a demo site: [FBA UI](https://fba.xwboy.top/) +> username / password: admin / 123456 ## Features diff --git a/README.zh-CN.md b/README.zh-CN.md index 94e9e76d..61c68805 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -38,9 +38,10 @@ mvc 架构作为常规设计模式,在 python web 中也很常见,但是三 ## 在线预览 -遗憾的是,我们没有资金提供在线预览,您可以通过查看[本地开发](#本地开发)进行部署,或直接使用 [Docker](#docker-部署) -进行部署,或者在 [fastapi_best_architecture_ui](https://github.com/fastapi-practices/fastapi_best_architecture_ui) -查看部分截图预览 +你可以在 [fastapi_best_architecture_ui](https://github.com/fastapi-practices/fastapi_best_architecture_ui) 中查看部分预览截图 + +幸运的是,我们现在有一个演示站点: [FBA UI](https://fba.xwboy.top/) +> 账号 / 密码: admin / 123456 ## 特征 diff --git a/deploy/docker-compose/docker-compose.yml b/deploy/docker-compose/docker-compose.yml index 8656df2a..f5ad71e4 100644 --- a/deploy/docker-compose/docker-compose.yml +++ b/deploy/docker-compose/docker-compose.yml @@ -76,6 +76,28 @@ services: networks: - fba_network +# # For use fastapi_best_architecture_ui, or online/pro env +# fba_ui: +# build: +# context: ⚠️ your fba_ui folder directory ⚠️ +# dockerfile: Dockerfile +# ports: +# - "80:80" +# - "443:443" +# container_name: fba_ui +# restart: always +# depends_on: +# - fba_server +# command: +# - nginx +# - -g +# - daemon off; +# volumes: +# - fba_static:/www/fba_server/backend/app/static +# networks: +# - fba_network + + # Good for server dev env fba_nginx: image: nginx ports: @@ -86,7 +108,7 @@ services: - fba_server volumes: - ../nginx.conf:/etc/nginx/nginx.conf:ro - - fba_static:/www/fba/backend/app/static + - fba_static:/www/fba_server/backend/app/static networks: - fba_network diff --git a/deploy/nginx.conf b/deploy/nginx.conf index d8671a2c..aa8e4817 100644 --- a/deploy/nginx.conf +++ b/deploy/nginx.conf @@ -35,7 +35,7 @@ http { listen [::]:80 default_server; server_name 127.0.0.1; - root /fba; + root /fba; client_max_body_size 10m; # 最大上传文件 @@ -51,8 +51,8 @@ http { proxy_read_timeout 300s; } - location /static { - alias /www/fba/backend/app/static; + location /static/ { + alias /www/fba_server/backend/app/static; } } }