Recent Posts

Pages: [1] 2 3 ... 10
1
HFS ~ HTTP File Server / Re: New version: 2.3m
« Last post by ofeklivny on September 18, 2018, 05:24:27 PM »
Great to see a new release :)
Been using this great software for two years now !
2
HTML & templates / Re: new responsive template
« Last post by rejetto on September 17, 2018, 10:12:40 PM »
3
HFS ~ HTTP File Server / Re: HFS behind Nginx reverse proxy
« Last post by rejetto on September 17, 2018, 10:09:00 PM »
i guess you should rewrite the url, removing the /hfs when the request is passed to hfs.
google for it. in Apache rewrite is possible.

worst case you can move all your stuff in the hfs' virtual file system under a folder /hfs.
4
HFS ~ HTTP File Server / Re: HFS behind Nginx reverse proxy
« Last post by finchy70 on September 17, 2018, 11:08:47 AM »
Solved the issue by moving HFS to the root of Nginx proxy server.  Would like to know how to move it to the /hfs url though.
5
HFS ~ HTTP File Server / Re: HFS behind Nginx reverse proxy
« Last post by finchy70 on September 16, 2018, 07:43:21 AM »
Thanks for the reply.
Could you explain what you mean in a little more detail please.

Here is my HFS folder with tpl file.



Here is my config for HFS in Nginx.

location /hfs {
   proxy_pass http://127.0.0.1:4443/;
   proxy_set_header  X-Real-IP  $remote_addr;
   proxy_set_header        Host              $host;
   proxy_set_header        X-Forwarded-For   $proxy_add_x_forwarded_for;
   proxy_set_header        X-Forwarded-Proto $scheme;
   proxy_redirect off;
   proxy_buffering off;
}

Also how do I append /hfs to the address in the HFS settings?



6
HFS ~ HTTP File Server / Re: HFS behind Nginx reverse proxy
« Last post by bmartino1 on September 15, 2018, 10:10:24 PM »
Did you bind hfs to a real folder.

I would first set a bind and then eidte or reuse the default template at the root in that folder(hfs.diff.tpl) before the proxy to verify file cashed and load.

Otherwise you will have to settle up IP hfs connect is on
7
HTML & templates / Re: Introducing: The really fast Throwback (retro) template. Updated.
« Last post by Mars on September 15, 2018, 08:47:23 PM »
Thank you DJ for the idea, my previous post edited accordingly regarding the javascript part ,works as simply as necessary ;)

I'm still working on the changes that can be made to the default template with a minimum of modifications and that are as simple as possible

probably it will not work on platforms where javascript is disabled,  I do not know if it also has an impact on jquery
8
HTML & templates / Re: Introducing: The really fast Throwback (retro) template. Updated.
« Last post by dj on September 15, 2018, 08:34:40 PM »
Until then, a possible workaround solution

my modified addon, adapted to throwback1998

Code: [Select]
[+]
<script>  //formatmodified for mobil-light.tpl
//use ISO Date Format in hfs
var options={ year: '2-digit', month: '2-digit', day: 'numeric' }  //edit here
 //year, month, day, hour, minute, second  "numeric", "2-digit"; weekday  "narrow", "short", "long"
var locales=navigator.language

var ref=document.querySelectorAll('td:nth-child(3) font')  //addapted to throwback1998
if(!ref.length) ref=document.querySelectorAll('tr td:nth-child(3)')  //std-tpl
for (var i=0; i<ref.length; i++)  {
 var tmp=Date.parse(ref[i].textContent.slice(0,19))
 if(tmp) ref[i].textContent = new Date(tmp).toLocaleString(locales, options)
}

</script>
9
HFS ~ HTTP File Server / HFS behind Nginx reverse proxy
« Last post by finchy70 on September 15, 2018, 07:55:49 PM »
Hi. 
I have managed to set up HFS behind a reverse proxy.but HFS seems to lose its css.  How do I set the  /domain in HFS options as I think this may be the problem.
10
HTML & templates / Re: Introducing: The really fast Throwback (retro) template. Updated.
« Last post by Mars on September 15, 2018, 05:20:01 PM »
Quote
[+file]
<td>%item-size%B<td><script type="text/javascript" >mdy(%item-modified-dt%)</script><td>%item-dl-count%

[+folder]
<td class='nosize'>{.!folder-item|folder.}<td><script type="text/javascript" >mdy(%item-modified-dt%) </script><td>%item-dl-count%

Quote
[lib.js|no log]
// <script> // this is here for the syntax highlighter


function mdy(data) {
   var options={ year: '2-digit', month: '2-digit', day: 'numeric' }
   var locales=navigator.language;
   document.write( new Date((data*24-613658)*3600*1000).toLocaleString(locales, options));
}


function outsideV(e, additionalMargin) {
......
Pages: [1] 2 3 ... 10