add a virtual host for www as well

This commit is contained in:
Ivan Dimitrov 2023-11-28 16:45:47 +02:00
parent 60612f4982
commit 92984cc85b

View File

@ -16,7 +16,15 @@
add_header 'Referrer-Policy' 'origin-when-cross-origin'; add_header 'Referrer-Policy' 'origin-when-cross-origin';
add_header X-Content-Type-Options nosniff; add_header X-Content-Type-Options nosniff;
''; '';
virtualHosts."idimitrov.dev" = { virtualHosts = {
"idimitrov.dev" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:3000";
};
};
"www.idimitrov.dev" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
@ -25,4 +33,5 @@
}; };
}; };
}; };
};
} }