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 - Rapid

Pages: 1 2 3
1
I suggested a new file format to save settings - JSON in Zip.
So it's much easier to check for corruption and modify by hands.

Unfortunately I don't have time to make a patch for Rejetto's version as my version is very different now...
Maybe someone could make it? I think new format and PNG-support - is a must have.

2
HFS ~ HTTP File Server / Re: Two folders, two websites?
« on: September 14, 2021, 01:37:02 PM »
I would recommend to use reverse-proxy for this.
For example nginx.
It can handle any domains, folders, etc...

3
Programmers corner / Re: HTTP File Server on a Raspberry PI.
« on: August 30, 2021, 10:59:22 AM »
I hope next year we will have a Delphi with Windows ARM support.

4
Programmers corner / Re: HTTP File Server on a Raspberry PI.
« on: August 29, 2021, 07:31:46 PM »
This is HFS on Windows 11 in ESXi-ARM on Raspberry PI  :)

5
HFS ~ HTTP File Server / Re: HFS Perfomance
« on: August 28, 2021, 09:08:52 AM »
When I've made a profiling, I saw that most of processor-eating operation are exceptions.
So in my version I've tried to remove all possible exceptions. And recommend to compare timings

6
I'm suggesting a new format for VFS.
A JSON config file and all icons as separate files inside zip archive.
It will be easy to look and modify.

I've made an export into this format (i've called *.VFSJZ) so you can look at it.
https://github.com/drapid/HFS/releases/tag/2.4RC8

Loading is the next thing...

7
Bug reports / Re: HFS is crashing
« on: June 25, 2021, 09:29:53 AM »
Main reason for crashes was a TreeView that recreated during monitor disconnects.

Does your computer have a monitor or it's headless?

8
HTML & templates / Re: The "Takeback" template - A different & modern taste
« on: February 09, 2021, 11:22:09 AM »
...
@Rapid has a version of HFS 2 that splitted server and client code. Have a try on that?
I'm just trying to split.
One of the problems is that macroses are rely on client side

9
I currently use an nginx reverse proxy and can pass the connecting ip.  I tried this with Apache and was never successful.

As a side note, HFS is always going to show the connection coming from the proxy IP address, but in HFS you can turn off logging of that connection and instead record the IP of the GET requests, which is what nginx passes and likely the address your interested in. 

An added bonus to using a reverse proxy is it can easily be setup to use free Letsencrypt SSL certs and the HFS server can remain standard HTTP.

Here's what you need nginx to pass in a custom header:

X-REAL-IP - $remote_addr
X-Forwarded-For $remote_addr
Host $host
X-Forwarded-Proto $scheme
https://rejetto.com/forum/index.php?topic=13059.msg1064448#msg1064448 - to get real IP in logs

10
HTML & templates / Re: How to Speed up Rendering
« on: December 09, 2020, 06:47:45 AM »
Could you make a benchmarking for my latest version also?
I've made many optimizations in macros parser...
https://github.com/drapid/HFS/releases

11
HFS ~ HTTP File Server / Re: 4K screens problem
« on: November 16, 2020, 01:39:27 PM »
Latest Delphi has new components  TImageCollection and TVirtualImageList:
http://docwiki.embarcadero.com/RADStudio/Rio/en/Supporting_high-DPI_images_with_the_Image_Collection_and_Virtual_ImageList_components

I've switched to them, and added several 32x32 icons - and menus looks much better now.

But we need to support HiDPI also in web-client side.
Maybe we should make 2 icon-sets and request images based on web-client resolution? Somewhat like Lo and Hi res.

12
HFS ~ HTTP File Server / Re: .tar doesn't support files of size above 8gb
« on: November 16, 2020, 01:19:55 PM »
i just had a look at the encoding of filesize in TAR, and it uses 12 octal digits, it means 8^12=68GB.
Are you sure it's the TAR corrupted, and not the program you use to open it that isn't able to handle it?
what softwares did you use for your tests?
According ustar specification for TAR - there is only 11 octal digits for size + 1 space = 8GB
But most programs should support POSIX specification for TAR, that uses binary size and therefore can easily save Int64 size.
Please have a look: https://github.com/drapid/rnq/blob/aaac45aae47ed632e17c5dae129bff713baea7eb/for.RnQ/RnQNet.Uploads.pas#L731
I'm not sure that I've made ALL necessary changes though...

13
HFS ~ HTTP File Server / Re: 4K screens problem
« on: June 05, 2020, 02:57:53 PM »
And again, it's not so hard to add HiDPI suppport to HFS.
I'm using 4k laptop for many years, and my build compiled with multimonitor HiDPI support (PerMonitorV2)
Main changes only in progFrmLib

And I hope you will add bigger icons (at least 32x32)  :)

14
Beta / Re: version 2.4
« on: May 30, 2020, 02:26:31 PM »
sure! somebody let me know if this file is good, then we'll decide how to publish it
I think one of a problems is that all resourcestrings in functions you named as MSG:
Code: [Select]
[ResourceStrings]
64820_main_MSG{1}=The current template is using macros.\^Do you want to cancel this action?
...
64820_main_MSG{1}=Max simultaneous addresses downloading.
...
64820_main_MSG{1}=Max lines on screen
...
64820_main_MSG{1}=Max lines on screen
64820_main_MSG{1}=Here you can specify how to format the log file complying Apache standard.\^Leave blank to get bare copy of screen on file.\^\^Example:\^   %h %l %u %t "%r" %>s %b
64820_main_MSG{1}=This option creates an .md5 file for every new calculated fingerprint.\^Use with care to get not your disk invaded by these files.


15
Bug reports / Re: Dynamic DNS Updater with HTTPS
« on: May 27, 2020, 03:32:01 PM »
Hi Rejetto!

I think it's easier to add https support: https://github.com/drapid/HFS/blob/55d2bb27b06d7e5fa832ec397b63f8761edb5888/utillib.pas#L1806
Of course you need to copy openssl libs to use it...

Pages: 1 2 3