Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Sep 21, 2023
1 parent f101cd3 commit 3394cc2
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions images/web/config/lighttpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ server.modules = ( "mod_access", "mod_rewrite", "mod_fastcgi", "mod_proxy", "mo

# accesslog.filename = "/dev/stdout"
# server.errorlog = "/dev/stderr"
server.errorlog = "/var/log/lighttpd/error.log"

# handling unknown routes
server.error-handler-404 = "/dispatch.map"
Expand All @@ -31,11 +32,10 @@ $HTTP["request-method"] == "OPTIONS" {
"Access-Control-Allow-Credentials" => "true",
"Access-Control-Max-Age" => "86400"
)
server.modules += ( "mod_setenv" )
url.access-deny = ("")
}
# url.access-allow = ("/") # Allow all URLs for OPTIONS requests
url.access-allow = ("/dispatch.map")

server.modules += ( "mod_setenv" )
}

$HTTP["url"] =~ "^/api/0\.6/map" {
setenv.add-response-header = (
Expand All @@ -45,6 +45,9 @@ $HTTP["url"] =~ "^/api/0\.6/map" {
"Access-Control-Allow-Credentials" => "true",
"Access-Control-Max-Age" => "86400"
)
# url.access-allow = ("/") # Allow all URLs for OPTIONS requests
url.access-allow = ("/dispatch.map")

}

debug.log-request-handling = "enable"
Expand Down Expand Up @@ -78,9 +81,9 @@ $HTTP["request-method"] == "PUT" {
)
}

# $HTTP["url"] =~ "^/(?!(dispatch\.map))" {
# proxy.server = ( "" => ( ( "host" => "http://127.0.0.1", "port" => "80" ) ) )
# }
$HTTP["url"] =~ "^/(?!(dispatch\.map))" {
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "80" ) ) )
}

fastcgi.debug = 1

Expand All @@ -91,4 +94,3 @@ fastcgi.server = ( ".map" =>
))
)

server.errorlog = "/var/log/lighttpd/error.log"

0 comments on commit 3394cc2

Please sign in to comment.