Changed to domain

This commit is contained in:
2024-12-27 16:37:49 +02:00
parent fad957762e
commit 764093669c

View File

@@ -1,22 +1,24 @@
{ pkgs, ... }: {
services.nginx = {
enable = true;
virtualHosts."185.170.113.195" = {
extraConfig = ''
error_page 404 /404.html;
location = /404.html {
root /srv/website;
internal;
}
'';
virtualHosts."kyren.codes" = {
listen = [{
addr = "0.0.0.0";
port = 80;
}];
locations."/" = {
index = "index.html";
root = "/srv/website";
};
locations."/404.html" = {
root = "/srv/website";
};
extraConfig = ''
error_page 404 /404.html;
'';
};
};