From: Emil Williams Date: Sun, 10 Aug 2025 18:54:31 +0000 (+0000) Subject: everything breaks when I do this X-Git-Url: https://git.xolatile.top/?a=commitdiff_plain;h=81877fbfd9b6ee2a87a0dcc4ef45a472aa7f56d7;p=emil-up.chud.cyou.git everything breaks when I do this --- diff --git a/out/.gitkeep b/out/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/up.chud.cyou b/up.chud.cyou index 2352a13..1f9cce3 100644 --- a/up.chud.cyou +++ b/up.chud.cyou @@ -24,9 +24,8 @@ server { client_max_body_size 100m; - location ^~ /out/ { - default_type text/plain; - autoindex on; + location = /style.css { + try_files $uri =404; } location = /upchud.tcl { @@ -37,6 +36,11 @@ server { fastcgi_param SCRIPT_FILENAME /var/www/up.chud.cyou/upchud.tcl; } + location ^~ /out/ { + default_type text/plain; + autoindex on; + } + set $send 0; if ($request_method = PUT) { set $send 1; @@ -51,5 +55,6 @@ server { rewrite ^/$ /index.html last; rewrite ^/upchud.tcl$ /upchud.tcl last; + rewrite ^/style.css$ /style.css last; rewrite ^/(.+)$ /out/$1; }