Changed to domain
This commit is contained in:
18
nginx.nix
18
nginx.nix
@@ -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;
|
||||
'';
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user