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 ... 893
HFS ~ HTTP File Server / Re: a new beginning...
« on: March 17, 2022, 09:26:34 AM »
thanks for your help!
and it's nice to have some feedback from time to time and know that people are using it. I'm struggling, with my full time job, to find the time to progress. Wish I had more.
Android? Unexpected surprise :D

link for the folks

Programmers corner / Re: HTTP File Server on a Raspberry PI.
« on: March 16, 2022, 06:13:56 PM »
rejoice, for hfs 3 already runs natively on linux :)
the linux binary may not be right for arm, but i expect the node version to run smoothly

Everything else / Re: Leave here your holiday season's greetings!
« on: March 16, 2022, 06:12:22 PM »
oh, sorry guys, i missed this topic.
Surely I was too busy with HFS 3 ;-)
hi bmartino :)

HTML & templates / Re: archive not working
« on: February 22, 2022, 08:21:22 PM »
try Menu > debug > temporarily reset options

if it works this way, it means it's something you set that broke it

HTML & templates / Re: archive not working
« on: February 22, 2022, 07:24:47 PM »
1. what browser did you use?
2. did you customize the template?

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.

Pages: 1 2 3 4 5 ... 893