@silverpill you need a trailing slash at https://codeberg.org/silverpill/mitra/src/branch/main/config.example.yaml#L13 , looks like actix file server uses RFC-compliant url joining and this value makes it use default handler for every request because it can't find any files
Conversation
Notices
-
pomstan (pomstan@xn--p1abe3d.xn--80asehdb)'s status on Tuesday, 02-Jul-2024 23:55:51 JST pomstan -
silverpill (silverpill@mitra.social)'s status on Tuesday, 02-Jul-2024 23:55:50 JST silverpill @pomstan This is intentional. Backend routes are checked first, and if no matches are found, index.html is served.
In conversation permalink -
silverpill (silverpill@mitra.social)'s status on Thursday, 04-Jul-2024 08:45:07 JST silverpill @pomstan I'm saying that Mitra uses custom logic when it serves web client, so you theory about actix and default handler is probably not correct.
I don't know why it doesn't serve your static files without adding trailing slash. The configuration example works for me and apparently for everyone else too.Could you tell me what are you trying to do?
In conversation permalink -
pomstan (pomstan@xn--p1abe3d.xn--80asehdb)'s status on Thursday, 04-Jul-2024 08:45:08 JST pomstan @silverpill dunno what you meant but i couldn't receive static files until i appended a slash at the end
In conversation permalink
-