pomf / pomf

Pomf is a simple lightweight file host with support for drop, paste, click and API uploading.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to remove /files from file URL

7zx opened this issue · comments

commented
2023-01-24.11-40-01.mp4
commented

It works if i got directly into the files folder for example https://pomf.pt/files/spHmnXuW.PNG instead of https://pomf.pt/spHmnXuW.PNG, but i want it to work without the /files root on the URL, what do i do?

commented

I forgot to mention that i am not using any subdomain to host the files, that's probably why it only works using the /files on the main domain...

What web server are you using? If you are using Nginx you can add an alternate try_files subfolder. Beware the security implications of this though.

Use a subdomain.

commented

Thanks, i guess i'll just use a subdomain.