Compare commits

...

2 Commits

Author SHA1 Message Date
d7d59322c5 Add lighttpd conf file for https proxying 2020-05-05 19:41:12 +02:00
15945c08f7 Set request limit to 40 characters 2020-05-05 19:40:42 +02:00
2 changed files with 15 additions and 1 deletions

14
misc/lighttpd.conf Normal file
View File

@ -0,0 +1,14 @@
server.modules += ("mod_proxy")
$HTTP["host"] == "domain.tld" {
$HTTP["url"] =~ "^/dijkstra/" {
proxy.server = ( "" =>
( "internal" =>
(
"host" => "localhost",
"port" => 6802
)
)
)
}
}

View File

@ -66,7 +66,7 @@ static void dijkstra_serv_soup_callback (SoupServer *server,
return; return;
} }
if (strlen(path) > 20) { if (strlen(path) > 40) {
soup_message_set_status (msg, SOUP_STATUS_BAD_REQUEST); soup_message_set_status (msg, SOUP_STATUS_BAD_REQUEST);
return; return;
} }