raven/labsync: add public vhost
Required in order to trigger the generator from CI pipeline.
This commit is contained in:
parent
9fbd0f7963
commit
d7774a5866
1 changed files with 11 additions and 1 deletions
|
|
@ -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}/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue