Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
volumes:
- ./client/dist:/usr/share/nginx/html:ro
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ~/certbot/www:/var/www/certbot
- /home/ubuntu/certbot/www:/var/www/certbot:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
depends_on:
- backend
Expand Down
6 changes: 4 additions & 2 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ upstream backend {

# HTTP 서버 블록
server {
listen 80;
listen 80 default_server;
listen [::]:80 default_server;
server_name nocta.site www.nocta.site;

# Let's Encrypt 인증을 위한 설정
Expand All @@ -21,7 +22,8 @@ server {

# HTTPS 서버 블록
server {
listen 443 ssl;
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

임의 선택에서 지정이 되는군요

server_name nocta.site www.nocta.site;

# SSL 인증서와 키 파일 경로
Expand Down
Loading