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

Pages: 1 2
1
router & port problems / Re: nginx 413 Request Entity Too Large
« 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

2
router & port problems / nginx 413 Request Entity Too Large
« 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;
        }
    }

}

3
Hi, :)

If you are running Nginx on the same PC that runs HFS (along with it, on the same OS), then instead of using:

Code: [Select]
proxy_pass http://192.168.0.100:80;
Use the following:

Code: [Select]
proxy_pass http://127.0.0.1:80;
Check if this solves your problem (and then please report back the results here).
If you check this when posting a new thread/post, instead of going back to the message index, you return to the topic (and see your new post).

Cheers,
Leo.-

this one fully works thank you and rejetto!

4
:-[ To tell the truth, I'm not an Nginx expert, so it's hard to tell you what the exact problem is (and why it doesn't work for you). Rejetto has released a Nginx package HERE (to have HTTPS support). You can try his package, or you can 'extract' the correct setting from it. I haven't tested it, but perhaps using it you could solve your issue. Unfortunately I have no other solution in mind. :-\

thanks :)
its 1am already so ill test it tomorrow and post the results here ;D

5
Hi, :)

If you are running Nginx on the same PC that runs HFS (along with it, on the same OS), then instead of using:

Code: [Select]
proxy_pass http://192.168.0.100:80;
Use the following:

Code: [Select]
proxy_pass http://127.0.0.1:80;
Check if this solves your problem (and then please report back the results here).
If you check this when posting a new thread/post, instead of going back to the message index, you return to the topic (and see your new post).

Cheers,
Leo.-

yes both are on the same pc and host os but i have found that using the lan ip works better than 127 even for local stuff but sadly no matter the proxy pass url it wont work

6
Hello im trying to add ssl cert by proxying connections thru nginx and its working apart from hfs homepages they just dont generate and show the nginx 502 bad gateway but any of my custom html pages do load & work + has ssl but interestingly the hfs not found page does display is there any way to fix this?

heres my nginx config:
   location / {
      proxy_pass http://192.168.0.100:80;
      proxy_set_header Host $http_host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

      proxy_set_header X-Forwarded-Proto $scheme;
      proxy_buffering off;
      proxy_redirect off;
   }


btw what does "Return to th is topic" do?

7
HTML & templates / Re: question
« on: March 26, 2023, 03:44:49 PM »
THIS is the standalone build.
the build includes node.js internally. I don't know a different way.
you want it to be compatible with win7, but this requires node.js version to be 13.
I'm using node 16.
It means someone should work on making HFS compatible with node 13.
Latest version is 19.

what is pfp? profile picture?
pfp = profile picture

8
HTML & templates / Re: question
« on: March 26, 2023, 03:40:47 PM »
btw i know this doesnt relate but why my pfp squished?

9
HTML & templates / Re: question
« on: March 26, 2023, 03:37:19 PM »
I should have guessed it from your username :D

yeah and i have sometimes tried node js apps but they never seem to work as expected and feels like this isnt gona work either
can you make a standalone build?

10
HTML & templates / Re: question
« on: March 26, 2023, 03:32:43 PM »
exe is one of the available options
https://github.com/rejetto/hfs/releases/download/v0.41.0/hfs-windows.zip

"Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher.
Setting the NODE_SKIP_PLATFORM_CHECK environment variable to 1 skips this
check, but Node.js might not execute correctly. Any issues encountered on
unsupported platforms will not be fixed."

11
HTML & templates / Re: question
« on: March 26, 2023, 09:58:22 AM »
"Just live with it" ;) (until it's fixed, possibly never). Thanks for the report, anyway. You can edit the template and remove the protection check, but it's not recommended (since it requires you to have knowledge to not break the template).

Wait a minute... :o I hear Rejetto's footsteps approaching coming here, possibly to suggest you to try the brand-new HFS v3, which you already know: is 100x much better (and 10x more bloated too, but sadly I can't run it on my WinXP to test it). So, I better leave you now before he comes.
See you next time, bye...


i tried hfs v3 but couldnt figure out how to use it why is it not an exe like v2

12
HTML & templates / Re: question
« on: March 25, 2023, 12:29:38 PM »
Sorry, I was busy, and I couldn't answer...

It's easy, follow these steps: ;)

1) Right-click on the folder you allow uploads, and choose 'Properties...'

2) Go to 'File masks' tab, and on 'Upload filter mask' write this:

*.*
(for allowing any type of file)

or

*.htm*
(for HTML files only)
(this only allows: .htm and .html files)

If you need to allow several types, you can separate using ;

For example (more examples):

*.htm*;*.jp*g;*.txt;*.rar
(this only allows: .htm, .html, .jpg, .jpeg, .txt and .rar files)

I guess this also answer this question (since it's the same question)

Cheers,
Leo.-

i cant rename file to index.html but i can download and upload it as index.html lol

13
HFS ~ HTTP File Server / Re: help
« on: March 23, 2023, 01:18:53 PM »
sorry, you can't.
It's not designed for this kind of task.

will it be added ever?  :)

14
HFS ~ HTTP File Server / help
« on: March 23, 2023, 09:52:12 AM »
hos can i do php in hfs?

15
HTML & templates / Re: question
« on: March 17, 2023, 03:28:05 PM »
Sorry, I was busy, and I couldn't answer...

It's easy, follow these steps: ;)

1) Right-click on the folder you allow uploads, and choose 'Properties...'

2) Go to 'File masks' tab, and on 'Upload filter mask' write this:

*.*
(for allowing any type of file)

or

*.htm*
(for HTML files only)
(this only allows: .htm and .html files)

If you need to allow several types, you can separate using ;

For example (more examples):

*.htm*;*.jp*g;*.txt;*.rar
(this only allows: .htm, .html, .jpg, .jpeg, .txt and .rar files)

I guess this also answer this question (since it's the same question)

Cheers,
Leo.-

thanks

Pages: 1 2