summaryrefslogtreecommitdiffstats
path: root/satellit_installer
diff options
context:
space:
mode:
authorSimon Rettberg2024-06-10 14:19:02 +0200
committerSimon Rettberg2024-06-10 14:19:02 +0200
commit62384ccbfc830ae129bfd62611a9c075f6eb702c (patch)
tree041bb652e4938b705e4c71c862c05c45df9f6f6c /satellit_installer
parent[shib_secondary] Tool to deploy a secondary masterserver as fallback (diff)
downloadsetup-scripts-62384ccbfc830ae129bfd62611a9c075f6eb702c.tar.gz
setup-scripts-62384ccbfc830ae129bfd62611a9c075f6eb702c.tar.xz
setup-scripts-62384ccbfc830ae129bfd62611a9c075f6eb702c.zip
[shib_secondary] -/
Diffstat (limited to 'satellit_installer')
-rw-r--r--satellit_installer/static_files/lighttpd/etc/lighttpd/lighttpd.conf10
1 files changed, 8 insertions, 2 deletions
diff --git a/satellit_installer/static_files/lighttpd/etc/lighttpd/lighttpd.conf b/satellit_installer/static_files/lighttpd/etc/lighttpd/lighttpd.conf
index a4a2bdd..83859b7 100644
--- a/satellit_installer/static_files/lighttpd/etc/lighttpd/lighttpd.conf
+++ b/satellit_installer/static_files/lighttpd/etc/lighttpd/lighttpd.conf
@@ -15,6 +15,7 @@ server.username = "www-data"
server.groupname = "www-data"
server.port = 80
server.reject-expect-100-with-417 = "disable"
+server.max-keep-alive-idle = 10
index-file.names = ( "index.php", "index.html" )
@@ -32,6 +33,11 @@ include "/etc/lighttpd/conf-enabled/*.conf"
# Check if server.pem exists, if so output configuration block for HTTPS
include_shell "/usr/share/lighttpd/auto-ssl.sh"
+# Fow CoW editing
+$HTTP["url"] =~ "^/cow/" {
+ proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 9080 )) )
+}
+
url.rewrite-once = (
"^/*boot/+([a-z0-9_/-]+)/+config$" => "/slx-admin/api.php?do=getconfig&type=$1",
"^/*boot/+([a-z0-9_/-]+)/+config\?(.*)$" => "/slx-admin/api.php?$2&do=getconfig&type=$1",
@@ -41,8 +47,8 @@ url.rewrite-once = (
"^/*boot/+ipxe\?(.*)$" => "/slx-admin/api.php?$1&do=serversetup",
"^/*vmchooser/+list[^?]*$" => "/slx-admin/api.php?do=dozmod&resource=list",
"^/*vmchooser/+list[^?]*\?(.*)$" => "/slx-admin/api.php?$1&do=dozmod&resource=list",
- "^/*vmchooser/+lecture/+([^/]+)(\?|$)" => "/slx-admin/api.php?do=dozmod&resource=vmx&lecture=$1",
- "^/*vmchooser/+lecture/+([^/]+)/+([^/]+)(\?|$)" => "/slx-admin/api.php?do=dozmod&resource=$2&lecture=$1",
+ "^/*vmchooser/+lecture/+([^/]+)/+([^/]+)$" => "/slx-admin/api.php?do=dozmod&resource=$2&lecture=$1",
+ "^/*vmchooser/+lecture/+([^/]+)/+([^/]+)\?(.+)$" => "/slx-admin/api.php?do=dozmod&resource=$2&lecture=$1&$3",
"^/*vmchooser/+([^/]+)$" => "/slx-admin/api.php?do=news&type=$1",
"^/panel/([^?]{36})$" => "/slx-admin/?do=locationinfo&show=panel&uuid=$1",
"^/panel/([^?]*\.(js|css|png|svg))$" => "/slx-admin/$1",