Open acrogenesis opened 3 years ago
The nginx conf contains the following:
server { if ($host = mydomain.com) { return 301 https://$host$request_uri; } # managed by Certbot listen 80 ; listen [::]:80 ; server_name mydomain.com; return 404; # managed by Certbot }
the formatter doesn't identify the closing } on the if. It formats it like the following:
}
Same issue here, that messes up the whole http section
This is caused by this: https://github.com/raynigon/vscode-nginx-formatter/issues/207.
The nginx conf contains the following:
the formatter doesn't identify the closing
}
on the if. It formats it like the following: