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 {
2727 access_log /var/log/nginx/access.log;
2828
2929 # 添加 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+ }
3737
3838 server {
3939 # 删除下面两行
4040 # 更新为与上面 server_name 相同
4141 server_name 127.0.0.1 ;
4242
4343 # 添加 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;
5050
5151 client_max_body_size 5m ;
5252
Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ title: Docker 部署
2222
23234 . 更新脚本文件
2424
25- ::: warning
26- 如果你已通过后端 docker-compose 构建前端项目,此步骤和后面的剩余步骤直接跳过即可
25+ ::: caution 前端独立 docker-compose 构建条件
26+ 1 . 注释了 fba 后端 docker-compose 脚本中的 fba_ui 容器
27+ 2 . 已经通过 docker-compose 构建 fba 后端
2728 :::
2829
2930 ``` yaml :collapsed-lines=12
You can’t perform that action at this time.
0 commit comments