Showing
3 changed files
with
10 additions
and
3 deletions
... | @@ -19,6 +19,6 @@ FROM nginx:latest | ... | @@ -19,6 +19,6 @@ FROM nginx:latest |
19 | COPY web/default.conf /etc/nginx/conf.d/default.conf | 19 | COPY web/default.conf /etc/nginx/conf.d/default.conf |
20 | COPY --from=build /usr/web/build /usr/web/build | 20 | COPY --from=build /usr/web/build /usr/web/build |
21 | 21 | ||
22 | -EXPOSE 80 | 22 | +EXPOSE 443 |
23 | 23 | ||
24 | CMD ["nginx", "-g", "daemon off;"] | 24 | CMD ["nginx", "-g", "daemon off;"] | ... | ... |
1 | server { | 1 | server { |
2 | - listen 80; | 2 | + listen 443 ssl default_server; |
3 | + server_name 2020105578.oss2021.tk; | ||
4 | + | ||
5 | + ssl_certificate /etc/letsencrypt/live/2020105578.oss2021.tk/fullchain.pem; | ||
6 | + ssl_certificate_key /etc/letsencrypt/live/2020105578.oss2021.tk/privkey.pem; | ||
7 | + | ||
3 | location / { | 8 | location / { |
4 | root /usr/web/build; | 9 | root /usr/web/build; |
5 | index index.html; | 10 | index index.html; | ... | ... |
-
Please register or login to post a comment