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 ... 844
1
Programmers corner / Re: Configure HFS Virtual File System by code
« on: February 01, 2024, 11:20:27 PM »
hey, sorry for the late answer.
You could experiment with the [server start] event, where you can put your script
https://rejetto.com/wiki/index.php?title=HFS:_Event_scripts

The vfs format is not very complex but neither very easy. THere's no documentation, you should study the sources.
With HFS 3 i decided for simple text format (yaml).

2
HFS3 uses yaml, like json but more human friendly

4
F.A.Q.s / Re: Fav Icon
« on: December 18, 2023, 09:29:25 AM »
what HFS version are you using?

5
i'm trying to help, but you don't provide information required.
provide
1. the exact error message you see on mobile
2. the address you are using on mobile

6
for example it may be that your computer and your mobile are not on the same network.
are you trying to make it work in a local network (wifi) or over the internet?
but you didn't answer to my requests. I cannot help you without information.

7
if you can't open hfs, even the page with the file list, then you are not using the right address.
Try providing the exact error message, and the address you are using.

8
it's not clear what you mean by "cannot open downloaded files".
Is it that you cannot download, or that you download but then you cannot open?
Try to give as much details as you can.

9
what version are you using?

10
Bug reports / Re: HFS needs restart
« on: November 17, 2023, 12:05:16 PM »
yes, you can do it externally.
I wrote some instructions about it https://github.com/rejetto/hfs#service
but you may prefer other methods https://www.google.com/search?q=run+program+as+service+windows&oq=run+program+as+service+windows
If people know better methods I will update the documentation.

At the moment there's no automatic service installation. Hopefully in the future.
HFS is now cross-platform, and making system dependent actions is harder for me.

11
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: November 16, 2023, 04:45:05 PM »
I would like to configure the program so that one specific agent can download

this is the server code:
exports.middleware = ctx => ctx.get('user-agent') === 'YOUR_AGENT' || ctx.socket.destroy()

this code check for exact text. Otherwise you can use, for example, ctx.get('user-agent').startsWith('YOUR_AGENT')

be careful, because this code can stop you from using your browser, and to recover you will have to edit file "config.yaml" with an editor

https://github.com/rejetto/hfs/wiki/Middlewares

12
sorry, i missed your post for long.
there's no automatic conversion, best way is to re-do the vfs by hand.
thanks for your contribution, i'll see to add it to next version.

13
Pусский / Re: Ищу адекватный шаблон
« on: November 15, 2023, 10:36:03 PM »
sorry I don't speak russian, but you may want to have a look at next version https://github.com/rejetto/hfs

video files are playable only for formats supported by the browser

14
HFS ~ HTTP File Server / Re: reCAPTCHA for hfs?
« on: November 15, 2023, 09:53:57 PM »
cool, Leo!
this is how it is done with HFS 3 instead: you put this line in "server code"

exports.middleware = ctx => ctx.host === 'mydomain.com' || ctx.socket.destroy()

i'm considering to offer this as an option

15
Bug reports / Re: HFS needs restart
« on: November 15, 2023, 09:44:12 PM »
see if this can workaround your problem with HFS 2
https://rejetto.com/forum/index.php?topic=9577.msg1054784#msg1054784

for HFS 3, "browser at startup" is an option you can disable.
The "powershell window" can be avoided by turning hfs into a Service, or using a utility like this https://github.com/benbuck/rbtray
The Service is the right choice for an always-running server.
Hopefully in the future I will make this easier.

Pages: 1 2 3 ... 844