listen443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/api.kinoko.fun/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/api.kinoko.fun/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
} server { if ($host = api.kinoko.fun) { return301 https://$host$request_uri; } # managed by Certbot
listen80; server_name api.kinoko.fun; return404; # managed by Certbot }