update path
This commit is contained in:
parent
e558e7d158
commit
e6d9e0b136
1 changed files with 3 additions and 5 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
systemd.services."mirror-update" = {
|
systemd.services."mirror-update" = {
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.rsync}/bin/rsync -vPa rsync://mirrors.lug.mtu.edu/archlinux/ /var/www/mirror.zackmyers.io/
|
${pkgs.rsync}/bin/rsync -vPa rsync://mirrors.lug.mtu.edu/archlinux/ /var/www/mirror.zackmyers.io/archlinux/
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
|
@ -18,11 +18,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."mirror.zackmyers.io" = {
|
services.nginx.virtualHosts."mirror.zackmyers.io/" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/archlinux" = {
|
|
||||||
root = "/var/www/mirror.zackmyers.io";
|
root = "/var/www/mirror.zackmyers.io";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue