St991Cup's Blog

Steelcup, St991cup, steelcup


NGINX + Let’s Encrypt

Let’s Encrypt에 방문해 도메인 인증서를 발급하기 위한 가이드를 보면 쉘 커맨드를 사용할 수 있을 경우 Certbot을 사용하는 방법을 가르쳐준다.

NGINX SSL 리버스 프록시 설정 예시

server {
    listen 80;
    server_name example.com;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl;
    server_name example.com;

    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;

    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}


“NGINX + Let’s Encrypt”에 대한 1개 응답

  1. radianta29a235abf 아바타
    radianta29a235abf

    “Wow, this guide was exactly what I needed! I was struggling with setting up Let’s Encrypt on my NGINX server, and the certbot part kept throwing errors. Your step-by-step explanation made everything so much clearer, especially the reverse proxy settings. Now my site is running smoothly with HTTPS!

    For those who are also setting up their servers, I found this great resource on how to install NGINX on Ubuntu 24 really helpful. Thanks again for this awesome guide—I truly appreciate the effort you put into this! Looking forward to more tutorials like this.

    좋아요

댓글 남기기

워드프레스닷컴으로 이처럼 사이트 디자인
시작하기