Compare commits

...
Sign in to create a new pull request.

2 commits
main ... wip

Author SHA1 Message Date
jalr
078cc3abd2 Add howto deploy raven 2021-12-04 15:08:51 +00:00
468e8d3f97
WIP: raven/labsync: init 2021-12-04 12:33:59 +01:00
4 changed files with 48 additions and 0 deletions

View file

@ -1 +1,8 @@
# NixOS configurations of the FabLab Bad Windsheim
## Quick start
How to deploy to raven
```
nix run .#deploy/raven
```

View file

@ -63,5 +63,14 @@
virtualisation.docker.enable = true;
services.nginx.enable = true;
networking.firewall.allowedTCPPorts = [ 80 443 ];
# FIXME
networking.hosts = {
"192.168.94.1" = [ "raven.lab.fablab-nea.de" "labsync.lab.fablab-nea.de" ];
};
system.stateVersion = "21.05";
}

View file

@ -1,5 +1,6 @@
{
imports = [
./dnsmasq.nix
./labsync.nix
];
}

View file

@ -0,0 +1,31 @@
# legacy labsync, currently partly implemented in docker outside of this configuration
{
services.opentracker.enable = true;
services.nginx.virtualHosts."labsync.lab.fablab-nea.de" = {
locations = {
"/" = {
root = "/opt/docker/tftpgen/data";
extraConfig = ''
autoindex on;
'';
};
"/generator/".proxyPass = "http://127.0.0.1:8695/";
};
};
services.atftpd = {
enable = true;
root = "/opt/docker/tftpgen/tftp";
};
networking.firewall.allowedTCPPorts = [
6881 # aria2
6969 # opentracker
];
networking.firewall.allowedUDPPorts = [
6882 # aria2
69 # tftpd
6969 # opentracker
];
}