Files

20 lines
370 B
Plaintext
Raw Permalink Normal View History

2026-07-16 15:42:31 +08:00
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /var/www/todolist;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://127.0.0.1:8000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}