raven/labsync: add public vhost

Required in order to trigger the generator from CI pipeline.
This commit is contained in:
Jakob Lechner 2022-01-06 12:07:42 +00:00
parent 9fbd0f7963
commit d7774a5866
No known key found for this signature in database
GPG key ID: 996082EFB5906C10

View file

@ -1,9 +1,19 @@
# legacy labsync, currently partly implemented in docker outside of this configuration # legacy labsync, currently partly implemented in docker outside of this configuration
{ pkgs, ... }: { pkgs, ... }:
let
generator_port = 8695;
in
{ {
services.opentracker.enable = true; services.opentracker.enable = true;
services.nginx.virtualHosts."labsync.fablab-nea.de" = {
addSSL = true;
enableACME = true;
locations = {
"/generator/".proxyPass = "http://127.0.0.1:${toString generator_port}/";
};
};
services.nginx.virtualHosts."labsync.lab.fablab-nea.de" = { services.nginx.virtualHosts."labsync.lab.fablab-nea.de" = {
locations = { locations = {
"/" = { "/" = {
@ -12,7 +22,7 @@
autoindex on; autoindex on;
''; '';
}; };
"/generator/".proxyPass = "http://127.0.0.1:8695/"; "/generator/".proxyPass = "http://127.0.0.1:${toString generator_port}/";
}; };
}; };