rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - rejetto

Pages: 1 2 3 4 5 6 ... 894
HTML & templates / Re: About "hits"
« on: February 22, 2022, 07:23:47 PM »
other discussion moved to dedicated topic

HTML & templates / Re: archive not working
« on: February 22, 2022, 05:57:51 PM »
hi, you should provide more information on your case, like explaining your experience in detail.
Consider that it's a common feature and it works in most people's experience, so telling "it does not work" won't do.

HFS ~ HTTP File Server / Re: Hosting and PDF viewing
« on: February 13, 2022, 03:48:56 PM »
i guess it's because you apparently "invented" a mime type :D
mime types are conventions, so the only way is to google for it.
I did it for you, and apparently for pdf is application/pdf
hope it helps

HFS ~ HTTP File Server / Re: Ban IP using cloudflare
« on: February 10, 2022, 10:40:08 PM »
No, the limit is not on login. I'll try to explain. HFS normally knows your ip. That thing you are enabling is letting your other part (in your case cloudflare) to "tell" HFS what the real ip is. It can tell the truth or lie. Of course cloudflare will tell the truth, but HFS doesn't know.
That's why this feature is limited.
By default HFS decide to trust such information if it comes from a software that's running on your computer (localhost).
That's why you have to decide who HFS should trust. It's a trust limited to "telling the ip" of course. It's not necessarily something dangerous, but HFS must play it safe.
Your best option is to allow not * but just the IPs of cloudflare.
You can learn how to enter a filter different than * with this guide:

i don't know why the script isn't working. I didn't even test it, just copied it.

HFS ~ HTTP File Server / Re: Ban IP using cloudflare
« on: February 09, 2022, 03:57:25 PM »
ok, i googled: hfs x-forwarded-for
and that's what i've found :)

so, HFS already supports reverse-proxy but by default it's limited to localhost for security reasons.
You can change this but I gave a quick look and I think it's still missing in the menu.
Method 1) you'll edit the hfs.ini with notepad. Be sure first to quit HFS first.
Method 2) there's a scripting command to modify configuration via scripting. So as you can go Menu > Debug > Run script
and there run this small script
{.set ini|forwarded-mask=*.}

Here I'm suggesting * because if you only get requests that are forwarded by the proxy, then you can actually trust any source.
Otherwise you may specify exactly the IP address of the proxy.
Hope it helps.

HFS ~ HTTP File Server / Re: Ban IP using cloudflare
« on: February 09, 2022, 02:03:00 PM »
ciao Sergio,
ot may help to know what you did to configure HFS for cloudflare.
I've never used cloudflare myself, so i hope someone could help you.

HFS ~ HTTP File Server / Re: a new beginning...
« on: February 08, 2022, 05:09:48 PM »
in next version plugins' api will get a breaking change:
the way to get the api object will be as parameter of the "init" function.
I think this is cleaner.

Also, I've noticed that in exe distribution the 'require' doesn't work. To solve this, plugins will get api.require in the api object.

HFS ~ HTTP File Server / Re: Source path batch change ?
« on: February 07, 2022, 03:38:12 PM »
this freezing sounds like a slow networked drive/path, is it so?

you can preview version 3 at

if you decided to make some testing feel free to contact me for help privately, as i'm eager to get it working correctly:

HFS ~ HTTP File Server / Re: Source path batch change ?
« on: February 07, 2022, 11:10:59 AM »
hi and welcome!
there's nothing ready to use,
but an option for you is to change the folders using script commands.
so you can prepare your script, and decide to run it inside Menu > Debug > Run script
or a different solution.
Your script may even take some inputs somewhere, as parameters of the work is going to do.

Manually it means that you right click and "edit resource" for each folder.
I expect this to be a 20 seconds operation, x30 means 10 minutes.
It's up to you.

There's no option in HFS 2 to have the vfs in plain text, sorry.

HFS 3 (still in alpha, but usable) only uses plain text for all configuration, and doesn't require restart if you edit it while running.

HFS ~ HTTP File Server / Re: a new beginning...
« on: February 07, 2022, 09:35:14 AM »

admin interface, with real time connections monitor

HFS ~ HTTP File Server / Re: hfs 3 logo
« on: February 02, 2022, 06:50:49 PM »
ok, my idea is to ask someone to make me a custom version of this concept

and to change the motto (currently "the other way to share your files") to "serve fresh", referring to the fact that it's your disk providing files, and there's no de-sync with a cloud version

HFS ~ HTTP File Server / Re: a new beginning...
« on: January 29, 2022, 09:37:03 PM »
onDirEntry is in case you want to manipulate the list in the backend, not in frontend.
I think what you need is walkNode.

Pages: 1 2 3 4 5 6 ... 894