diff --git a/lighttpd/rlgallery.conf b/lighttpd/rlgallery.conf index 0fff2db..f2ab66c 100644 --- a/lighttpd/rlgallery.conf +++ b/lighttpd/rlgallery.conf @@ -5,12 +5,14 @@ server.bind = "0.0.0.0" $SERVER["socket"] == "[::]:80" { } +server.document-root := server_root + "/lighttpd" + # Ensure index.cgi is in the list index-file.names += ( "index.xhtml", "index.html", "index.htm", "index.cgi" ) -server.modules += ( "mod_cgi", "mod_redirect", "mod_setenv" ) +server.modules += ( "mod_cgi", "mod_setenv", "mod_redirect" ) cgi.assign = ( ".cgi" => "" ) @@ -25,13 +27,17 @@ $HTTP["host"] =~ "^(.*)$" { static-file.exclude-extensions += ( ".cgi", ".py" ) # Use the custom 404 error page -server.error-handler-404 = "404.html" +server.error-handler-404 = "/404.html" # Set a UTF-8 environment, or Python 3 won't work setenv.add-environment = ( "LC_CTYPE" => "en_US.utf8" ) +setenv.add-response-header = ( + "Permissions-Policy" => "interest-cohort=()" +) + # Turn on directory listing where it is needed $HTTP["url"] =~ "^/files/" { dir-listing.activate = "enable" diff --git a/py/rlgall.py b/py/rlgall.py index 50dfeba..253c46e 100644 --- a/py/rlgall.py +++ b/py/rlgall.py @@ -24,13 +24,13 @@ phead = """ -

Yendor Guild

+

Roguelike Gallery Records

""" -navtop = '\n' -navscore = '