Skip to content

Commit

Permalink
Update gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenpylons committed Nov 13, 2024
1 parent 05cd196 commit abc824d
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions machines/gateway.l/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
security.acme.certs =
let email = "[email protected]"; in
{
"bioma2022.um.si" = {
inherit email;
};
#"bioma2022.um.si" = {
# inherit email;
#};
"umplatforma.lpm.feri.um.si" = {
inherit email;
};
Expand All @@ -55,6 +55,9 @@
"dev.collab.lpm.feri.um.si" = {
inherit email;
};
#"test.collab.lpm.feri.um.si" = {
# inherit email;
#};
"pora.collab.lpm.feri.um.si" = {
inherit email;
};
Expand Down Expand Up @@ -150,15 +153,16 @@
'';
};
};
"bioma2022.um.si" = {
#forceSSL = true;
addSSL = true;
enableACME = true;
##"bioma2022.um.si" = {
## #forceSSL = true;
## addSSL = true;
## enableACME = true;

## locations."/" = {
## proxyPass = "http://bioma.l:8080";
## };
##};

locations."/" = {
proxyPass = "http://bioma.l:8080";
};
};
#"esp.lpm.feri.um.si" = {
# addSSL = true;
# sslCertificate = "/var/ssl/esp.lpm.feri.um.si.crt";
Expand Down Expand Up @@ -188,11 +192,6 @@
add_header Cache-Control "no-store, no-cache, must-revalidate";
'';
};
extraConfig = ''
if ($host != $server_name) {
return 444;
}
'';
};
"student-mqtt.lpm.feri.um.si" = {
addSSL = true;
Expand Down Expand Up @@ -242,11 +241,6 @@
add_header Cache-Control "no-store, no-cache, must-revalidate";
'';
};
extraConfig = ''
if ($host != $server_name) {
return 444;
}
'';
};
"pora.collab.lpm.feri.um.si" = {
addSSL = true;
Expand Down

0 comments on commit abc824d

Please sign in to comment.