Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
services.nginx = {
enable = true;
appendHttpConfig = ''
types {
text/html html;
text/css css;
text/xml xml rss;
image/gif gif;
image/jpeg jpeg jpg;
image/png png;
image/x-icon ico;
image/svg+xml svg;
application/x-javascript js;
}
server {
server_name www.chris-martin.org;
listen 80;
return 301 https://chris-martin.org$request_uri;
}
'';
virtualHosts = {
"chris-martin.org" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = "/home/web-deploy/chris-martin.org";
index = "index.html";
extraConfig = ''
default_type text/html;
'';
};
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.