{ https_port 9443 default_bind 127.0.0.1 auto_https disable_redirects } http://aki.cute-paw.online { bind 0.0.0.0 redir https://aki.cute-paw.online{uri} permanent } https://aki.cute-paw.online { root * /var/www/html try_files {path} /index.html file_server encode gzip } :9443 { tls internal respond 204 } :80 { bind 0.0.0.0 respond 204 }