Jump to content

Hi everyone!

I want to create a website that I can use for sharing files and since I don't know enough about HTML/PHP to do it myself, I thought maybe someone on here could point me in the right direction.

 

Here is what I currently got.

1) Raspberry Pi running nginx.

2) HTTPS configured and working on the Pi.

3) PHP and MySQL installed but not configured with anything but the base config.

4) A NAS that can do HTTPS, SAMBA and FTP file transfers.

 

What I want is a website hosted on the Pi, where you can login and get access to the NAS. I don't need any functionality like users being able to upload things. I just want a login prompt which gives users permission to download things.

 

Anyone got any tips? I tried googling a bit but could not find any useful info.

Link to post
Share on other sites

47 minutes ago, djneo said:

This looks promising. They don't detail how to link themselves to external storage but that can't be too hard. A symbolic link could work, right?

 

If anyone got other suggestions then I am all ears.

Link to post
Share on other sites

If you just want people to login and download things, why don't you just set up a ftp server ?  For uploads, you can set a special folder in each account where they could upload stuff, or you can create a separate username and password for each user which only gives them access to a folder where they could upload stuff  and/or maybe create one separate upload account with a folder where everyone can upload stuff.

 

To download stuff, they don't need to do anything, they just enter ftp://domain.com in the browser and when asked for username and password they enter it and they can download stuff. For uploads or to queue multiple files and/or folders easier, they could just download a separate ftp client (Like Filezilla ftp client in Windows), or they could install a Firefox addon like FireFTP which provides that functionality ... https://addons.mozilla.org/en-US/firefox/addon/fireftp/

 

If you don't have a domain you can buy one for less than $15 a year or you can use some free domain service like freedns.afraid.org  or no-ip.com or others.

 

 

Link to post
Share on other sites

1 hour ago, mariushm said:

If you just want people to login and download things, why don't you just set up a ftp server ?  For uploads, you can set a special folder in each account where they could upload stuff, or you can create a separate username and password for each user which only gives them access to a folder where they could upload stuff  and/or maybe create one separate upload account with a folder where everyone can upload stuff.

 

To download stuff, they don't need to do anything, they just enter ftp://domain.com in the browser and when asked for username and password they enter it and they can download stuff. For uploads or to queue multiple files and/or folders easier, they could just download a separate ftp client (Like Filezilla ftp client in Windows), or they could install a Firefox addon like FireFTP which provides that functionality ... https://addons.mozilla.org/en-US/firefox/addon/fireftp/

 

If you don't have a domain you can buy one for less than $15 a year or you can use some free domain service like freedns.afraid.org  or no-ip.com or others.

I guess I could run the FTP server on my Pi, but I've heard that mapping a network drive as your FTP directory is a pain in the ass.

But the "problem" with an FTP server is that it's kind of clunky. Surely there must be a more elegant and feature-rich solution than FTP these days.

 

I have a domain already, but thanks for the tips.

 

 

1 hour ago, Dat Guy said:

I'd recommend SeaFile. It was made for this specific use case, has pretty good mobile applications as well and does not have all the extra features (= potential attack vectors) of nextCloud/ownCloud.

SeaFile sounds interesting. Thanks for the tip.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×