The nginx service wont restart/start when i add virtual hosts. The service just stucks and the systemctl command takes forever
Config:
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedGzipSettings = true;
recommendedTlsSettings = true;
appendHttpConfig = ''
ssl_ecdh_curve secp521r1:secp384r1:prime256v1;
'';
};
services.nginx.virtualHosts."${cfg.url}" = {
useACMEHost = baseDomain;
forceSSL = true;
extraConfig = ''
client_max_body_size 50M;
'';
locations."/" = {
proxyPass = "http://127.0.0.1:${toString cfg.port}";
proxyWebsockets = true;
};
};
ACME was stuck so nginx was waiting for it.