psi-4ward / psitransfer

Simple open source self-hosted file sharing solution.
BSD 2-Clause "Simplified" License
1.46k stars 211 forks source link

Stop uploads for non admin ? #232

Closed glennpierce closed 2 years ago

glennpierce commented 2 years ago

I am probably being really dumb heresorry if this has been answered but is there a way to stop uploads except for the admin. My use case is to share file with possible friends but I don't want anyone who know the dns for the service to upload to my server ?

I know you don't have users. Can a htaccess be added (I am using the docker image)

Is that possible ?

Thanks

psi-4ward commented 2 years ago

You can use a Proxy for Auth (Traefik, Nginx, ...) or/and you can set a password for uploads: https://github.com/psi-4ward/psitransfer/blob/master/config.js#L40