rejetto forum

Recent Posts

21
Bug reports / HFS download speed slow for anything other than lan.
« Last post by Godielvs on September 24, 2021, 12:41:01 AM »
Hi. I'm using Beta RC06, but tried with newer versions too (downgraded because trying to delete something made 404 and didnt delete).
So. I have a file server with accounts and a Public folder to share things without needing to login (thats to my friends). I can send files over my lan pc to the dedicated server pc at about 700Mbps, when transfering the file HFS freezes completely, but thats no problem, it unfreezes when the file is sent/cancelled. The problem is when i try to download or upload something not in Lan. Using my phone mobile data, it downloads 3 separate files acting as one. Each one gets 2Mbps, to 6Mbps total. But when my friends try to download something everyone gets 1Mbps no matter what. Also its not constantly 1Mbps, it goes from 300Kbps to 2500Kbps very often, it fluctuates a lot, but mostly 1Mbps. My internet is 300down 150up, never going below this (seriously, its very very stable and its always 340down 170up). Tried deactivating firewall, activating DMZ, changing ports (currently using 9090, dont know if its bad or something), using and not using NoIP, changing random configs, activating and deactivating high speed handling, setting up limits (only made difference when it was lower than what my friends download), trying other versions to no avail. All my servers work great, with great latency and speed, but no HFS. Tried Filezilla too but its too hard to make it accessable from the web, and thats something i like in HFS.

What I am doing wrong and how do I fix it?
22
Bug reports / Re: False errors on upload
« Last post by Mars on September 17, 2021, 11:15:34 PM »
Appears for one of the following reasons:

when sending each file with the method that was used for it
- the logged in user does not have write rights to upload file in the folder
- the user and the password used do not correspond to a registered account values
23
Bug reports / False errors on upload
« Last post by D on September 16, 2021, 10:54:00 PM »
They only appear in logs. I'm using HFS 2.3m

Code: [Select]
Upload failed for 20210916_221111.jpg: Not allowed.
Upload failed 20210916_221111.jpg
Upload failed for 20210916_221155.jpg: Not allowed.
Upload failed 20210916_221155.jpg
Upload failed for 20210916_221259.jpg: Not allowed.
Upload failed 20210916_221259.jpg
Requested POST /
Uploading 20210916_221111.jpg
Fully uploaded 20210916_221111.jpg - 71.2 K @ 316.4 KB/s
Uploading 20210916_221155.jpg
Fully uploaded 20210916_221155.jpg - 114.0 K @ 797.2 KB/s
Uploading 20210916_221259.jpg
Fully uploaded 20210916_221259.jpg - 163.8 K @ 1.1 MB/s
26
HTML & templates / Re: Custom folder previews
« Last post by D on September 15, 2021, 10:07:34 AM »
for hfs2.4
Thanks. How can I move these images into Hits column?
27
HTML & templates / Re: Custom folder previews
« Last post by dj on September 15, 2021, 07:41:42 AM »
for hfs2.4

Code: [Select]
[+]
<script>
function folderth(){
 [...document.querySelectorAll('#files a[href$="/"]')].forEach(item =>
 item.insertAdjacentHTML('afterend', '<img loading=lazy height=128 src='+item.href+'folder.jpg>')  //p.jpg
 )
}

if(!document.querySelector('main')) folderth()  //hfs2.4
else document.addEventListener('render', folderth)  //mobil-light_V5.6
</script>
28
HTML & templates / Re: Custom folder previews
« Last post by D on September 14, 2021, 04:48:30 PM »
Okay, variant with images behind buttons:
Code: [Select]
[+]
<script>
var list=document.querySelectorAll("table#files>tbody>tr");
function changepic(a1)
{
  var alink=a1.querySelector("a");
  var adress=alink.getAttribute("href");
  if(adress.endsWith("/"))
  {
  adress+="p.jpg";
  var button=document.createElement("button");
  button.setAttribute("onclick","showPreview(this)");
  button.setAttribute("link",adress);
  button.setAttribute("type","button");
  a1.children[3].setAttribute("style","text-align:center");
  a1.children[3].appendChild(button);
  button.appendChild(document.createTextNode("Preview"));
  } 
}
list.forEach(changepic);
function showPreview(butt)
{
  butt.setAttribute("style","display:none");
  var par=butt.parentElement;
  var img=document.createElement("img");
  img.setAttribute("src",butt.getAttribute("link"));
  par.appendChild(img);
}
</script>
29
HFS ~ HTTP File Server / Re: Two folders, two websites?
« Last post by Rapid 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...
30
HFS ~ HTTP File Server / Re: Two folders, two websites?
« Last post by LeoNeeson on September 14, 2021, 08:25:25 AM »
Hi!, I'm 99.9% sure HFS is able to handle this situation, using 'HFS.events' and some macros. I did my best searching all the forum, but I could not find whether this was already discussed or not.

I will try to help you, giving a proof-of-concept idea. For example, lets say you have 'example1.dynDNS.com' and 'example2.dynDNS.com', and Folder1 and Folder2.

1) Switch to 'expert mode', pressing F5 inside HFS window.
2) Go to: Menu > IP Address > Custom... and add your domains.
3) At HFS window, press Alt+F6 to edit the 'hfs.events' file, and put the following text:

Code: [Select]
[+request]
{.if|{.match address|example1.dynDNS.com|%host%.}|
{.add header|location: /Folder1.}|
{.if|{.match address|example2.dynDNS.com|%host%.}|
{.add header|location: /Folder2.}|
{:{.disconnect.}:}
./if}

WARNING: The contents of that "hfs.events" were NOT tested by me, and that code may not work at all! (I'm just giving an idea on how it could work). That's all I can help you (my knowledge about macros is limited). I hope someone else (expert on macros), could give you a hand (meanwhile, you can read the HFS's Wiki here). / Edit: I was writing this before 'dj' posted.

Cheers,
Leo.-