강동현
Builds for 1 pipeline failed in 1 minute 15 seconds

http를 https로 리다이렉트하도록 설정

......@@ -18,5 +18,6 @@ services:
restart: unless-stopped
ports:
- "443:443"
- "80:80"
volumes:
- /etc/letsencrypt:/etc/letsencrypt
......
......@@ -20,5 +20,6 @@ COPY web/default.conf /etc/nginx/conf.d/default.conf
COPY --from=build /usr/web/build /usr/web/build
EXPOSE 443
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
......
server {
listen 80;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl default_server;
server_name 2020105578.oss2021.tk;
......