1
0

Compare commits

..

No commits in common. "601b5fe8c1ff8fd8f9ef28e3409069db289e5bc1" and "d1c7267119efd4092e90fe35158eb7394663d9c3" have entirely different histories.

2 changed files with 4 additions and 14 deletions

View File

@ -20,6 +20,7 @@
httpPort = 3000; httpPort = 3000;
lfs.enable = true; lfs.enable = true;
log.level = "Info"; log.level = "Info";
ssh.enable = true;
settings = { settings = {
database = { database = {
CHARSET = "utf8"; CHARSET = "utf8";

View File

@ -5,26 +5,12 @@
"ping.clerie.de" = { "ping.clerie.de" = {
enableACME = true; enableACME = true;
addSSL = true; addSSL = true;
root = fetchGit {
url = "https://git.clerie.de/clerie/ping.clerie.de.git";
ref = "main";
rev = "c9c0849e1f63fd2e3aeeba8ce19ec44065a5d563";
};
/*
locations."= /" = { locations."= /" = {
return = ''200 "This domain is used for connectivity checking and captive portal detection\n"''; return = ''200 "This domain is used for connectivity checking and captive portal detection\n"'';
extraConfig = '' extraConfig = ''
types { } default_type "text/plain; charset=utf-8"; types { } default_type "text/plain; charset=utf-8";
''; '';
}; };
*/
locations."= /ping" = {
return = ''201'';
extraConfig = ''
types { } default_type "text/plain; charset=utf-8";
add_header Access-Control-Allow-Origin *;
'';
};
locations."= /nm-check.txt" = { locations."= /nm-check.txt" = {
return = ''200 "NetworkManager is online\n"''; return = ''200 "NetworkManager is online\n"'';
extraConfig = '' extraConfig = ''
@ -40,6 +26,9 @@
add_header Cache-Control "max-age=0, must-revalidate"; add_header Cache-Control "max-age=0, must-revalidate";
''; '';
}; };
locations."/" = {
return = ''404'';
};
extraConfig = '' extraConfig = ''
access_log off; access_log off;
''; '';