rejetto forum

Recent Posts

1
HFS ~ HTTP File Server / Re: HFS Only one User Agent can Download
« Last post by ALEX on September 20, 2023, 08:34:11 AM »
Thanks Leo
2
HFS ~ HTTP File Server / Re: HFS Only one User Agent can Download
« Last post by LeoNeeson on September 19, 2023, 07:52:33 PM »
Welcome! :)

It's easy, just press "Alt+F6" inside HFS. That will create and open a text file (hfs.events). There add the following:

Quote
[request]
{.if|{.{.header|User-Agent.}!=ALLOWED_USER_AGENT_NAME.}|{:{.disconnect.}:}.}

Replace the text marked in red (ALLOWED_USER_AGENT_NAME), by the user agent you want to allow access, for example, if you only want to allow "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0", you would use this:

Code: [Select]
[request]
{.if|{.{.header|User-Agent.}!=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0.}|{:{.disconnect.}:}.}

Replace the text marked in green (request), by "download", if you want to allow file listing (to anyone), but block downloads that doesn't match the specified user agent.

Cheers,
Leo.-
3
HFS ~ HTTP File Server / HFS Only one User Agent can Download
« Last post by ALEX on September 19, 2023, 06:14:18 AM »
Hello. can somehow configure the program so that only one specific agent can load ?
4
HFS ~ HTTP File Server / Re: Embedding video from HFS to website
« Last post by nikster on September 13, 2023, 10:41:19 AM »
I found solution by using HFS3 with NoIP domain + purchased SSL certificate
I.e. HTTPS domain forwarded to my home IP via port 443

Unfortunately Wordpress plugins did not help in my case
5
router & port problems / Re: nginx 413 Request Entity Too Large
« Last post by rejetto on September 09, 2023, 09:36:26 AM »
this is a problem with nginx configuration (nothing really to do with hfs).
i'm no nginx expert but in the past i've already met and fixed this problem, but I can't remember, so: https://www.google.com/search?q=nginx+reverse+proxy+max+upload+size
6
HFS ~ HTTP File Server / Re: decodeuri doesn't always work correctly, how can I fix?
« Last post by rejetto on September 09, 2023, 09:30:55 AM »
this one works perfectly, thank you.
nice. btw, are you using 2.3 or 2.4?

Quote
Telegram - @rejetto ?
yes, if you'd like to use version 3 in the future, consider contacting me anyway, as I'm interested in understanding what are real customization needs, I'm still "shaping" version 3.
7
router & port problems / Re: nginx 413 Request Entity Too Large
« Last post by Win_7 on September 08, 2023, 07:24:26 PM »
and this post is hfs related as the server thats being accessed is hfs where im trying to get https for
8
router & port problems / nginx 413 Request Entity Too Large
« Last post by Win_7 on September 08, 2023, 07:23:30 PM »
Hello im using a template i found of nginx that passes traffic to hfs server and adds ssl cert but seems like the max data that can be in a request or post is extremely limited leading to the https version of my site being almost completely unusable how can i fix this?

config:

#user  nobody;
worker_processes  1;

events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;


    # HTTPS server
    #
    server {
        listen       443 ssl;
        server_name  localhost;

        ssl_certificate      cert.pem;
        ssl_certificate_key  cert.key;

        ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;

        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers  on;

        location / {
         proxy_pass http://127.0.0.1:80;
         proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
        }
    }

}
9
HFS ~ HTTP File Server / Re: decodeuri doesn't always work correctly, how can I fix?
« Last post by D on September 08, 2023, 06:11:07 PM »
Quote
Did you try removing the decodeuri? like this
{.exists|%item-folder%%item-url%.jpg .}
Yes, it's even worse, almost no pics appear.
Quote
but command "exists" works both with url and with path on disk, so you can also try
{.exists|%item-resource%.jpg .}
or something like this, i'm not sure if item-resource has a final \
Yes it does: {.exists|%item-resource%\.jpg.} - this one works perfectly, thank you.
Quote
You can contact me on telegram or gmail chat, and we can have a closer look at what you need
Telegram - @rejetto ?
10
HFS ~ HTTP File Server / Re: decodeuri doesn't always work correctly, how can I fix?
« Last post by rejetto on September 08, 2023, 04:32:19 PM »
Did you try removing the decodeuri? like this
{.exists|%item-folder%%item-url%.jpg .}

but command "exists" works both with url and with path on disk, so you can also try
{.exists|%item-resource%.jpg .}
or something like this, i'm not sure if item-resource has a final \