File tree Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -27,26 +27,26 @@ http {
27
27
access_log /var/log/nginx/access.log;
28
28
29
29
# 添加 https conf
30
- # server {
31
- # listen 80;
32
- # listen [::]:80;
33
- # # xxx.com 应该与 .env.production 中的配置保持一致
34
- # server_name xxx.com;
35
- # rewrite ^(.*)$ https://$host$1 permanent;
36
- # }
30
+ server { # [!code warning:6]
31
+ listen 80 ;
32
+ listen [::]:80;
33
+ # xxx.com 应该与 .env.production 中的配置保持一致
34
+ server_name xxx.com;
35
+ rewrite ^(.*)$ https://$host$1 permanent;
36
+ }
37
37
38
38
server {
39
39
# 删除下面两行
40
40
# 更新为与上面 server_name 相同
41
41
server_name 127.0.0.1 ;
42
42
43
43
# 添加 https conf
44
- # listen 443 ssl;
45
- # ssl_certificate /etc/ssl/xxx.pem; # 证书
46
- # ssl_certificate_key /etc/ssl/xxx.key; # 密钥
47
- # ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
48
- # ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
49
- # ssl_prefer_server_ciphers on;
44
+ listen 443 ssl; # [!code warning:6]
45
+ ssl_certificate /etc/ssl/xxx.pem; # 证书
46
+ ssl_certificate_key /etc/ssl/xxx.key; # 密钥
47
+ ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
48
+ ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
49
+ ssl_prefer_server_ciphers on ;
50
50
51
51
client_max_body_size 5m ;
52
52
Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ title: Docker 部署
22
22
23
23
4 . 更新脚本文件
24
24
25
- ::: warning
26
- 如果你已通过后端 docker-compose 构建前端项目,此步骤和后面的剩余步骤直接跳过即可
25
+ ::: caution 前端独立 docker-compose 构建条件
26
+ 1 . 注释了 fba 后端 docker-compose 脚本中的 fba_ui 容器
27
+ 2 . 已经通过 docker-compose 构建 fba 后端
27
28
:::
28
29
29
30
``` yaml :collapsed-lines=12
You can’t perform that action at this time.
0 commit comments