frontend/nginx.conf
2024-12-06 14:24:22 +09:00

41 lines
995 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
# DCV 검증을 위한 추가 설정
location = /.well-known/pki-validation/56DA6C13A51666386B7D2E61E85EF2E2.txt {
alias /home/ec2-user/eld/card_service/frontend/56DA6C13A51666386B7D2E61E85EF2E2.txt;
}
error_page 404 /index.html;
}
server {
listen 443 ssl;
server_name _;
ssl_certificate /home/ec2-user/eld/card_service/frontend/eld.crt;
ssl_certificate_key /home/ec2-user/eld/card_service/frontend/eld.key;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
# DCV 검증을 위한 추가 설정
location = /.well-known/pki-validation/56DA6C13A51666386B7D2E61E85EF2E2.txt {
alias /home/ec2-user/eld/card_service/frontend/56DA6C13A51666386B7D2E61E85EF2E2.txt;
}
error_page 404 /index.html;
}