From 0891b1fb605a0244a3f034ebdd528b4b57fa35f2 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 10 Dec 2025 18:21:51 +0500 Subject: upd: removed INSTANCE_STATIC_FOLDER constant --- .gitignore | 1 - 404.php | 2 +- README.md | 5 ----- lib/config.php | 2 -- 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 6cd98bb..7ad4f76 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ userdata/ *.db config.json -custom_static/ captcha/ \ No newline at end of file diff --git a/404.php b/404.php index 7741541..7d49c8b 100644 --- a/404.php +++ b/404.php @@ -31,7 +31,7 @@ $reason = str_safe($_GET["error_reason"] ?? "Not found", 200);
" alt=""> diff --git a/README.md b/README.md index ed1927e..95af72a 100644 --- a/README.md +++ b/README.md @@ -55,11 +55,6 @@ server { root /www/tinyemotesinstance/public; index index.php; - location ~ ^/static/?(.*)$ { - root /www/tinyemotesinstance/public; - try_files /custom_static/$1 /static/$1 =404; - } - location / { try_files $uri $uri/ /index.php?$query_string; } diff --git a/lib/config.php b/lib/config.php index fac6e02..c4fc5d8 100644 --- a/lib/config.php +++ b/lib/config.php @@ -111,7 +111,5 @@ $cfg['rating']['names'] = $n; define('CONFIG', $cfg); -define("INSTANCE_STATIC_FOLDER", "static"); // Static folder. Used only in /404.php. - // FOR DEVELOPERS define("CLIENT_REQUIRES_JSON", isset($_SERVER["HTTP_ACCEPT"]) && $_SERVER["HTTP_ACCEPT"] == "application/json"); \ No newline at end of file -- cgit v1.2.3