server { listen 443 ssl; ssl_certificate /certs/tls.crt; ssl_certificate_key /certs/tls.key; server_tokens on; location / { default_type text/html; return 200 "

hello

"; } location = /login { add_header Set-Cookie "sid=abc123; Path=/"; default_type text/html; return 200 "

login

"; } location /api/ { add_header Cache-Control "no-store"; default_type application/json; return 200 "{\"ok\":true}"; } location = /missing { return 404 "not found"; } }