server { listen 80; server_name gogongxt.com; root /home/gogongxt/blog/public; index index.html; # 静态文件直接返回 location / { try_files $uri $uri/ =404; } # Python API 反向代理 # location /api/ { # proxy_pass http://127.0.0.1:8000; # } listen 443 ssl; ssl_certificate /etc/letsencrypt/live/gogongxt.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/gogongxt.com/privkey.pem; }