How to setup anonymous acces to NextCloud (without password or as guest)?

Hello,

I have the following need that I don’t know how to setup.

I have files and folders on an anonymous FTP . Users would like to:

  • add tag to files,
  • be able to download a whole directory as an archive.

NextCloud seems to fit perfectly, but I need to do this as an anonymous user, i.e. without login, or maybe as a guest user. I have dug the forum, the issues on Github and the internet, but couln’t find how to achieve this.

I tried to create a share link and map an Apache vhost on it (mod_proxy, mod_proxy_html, or mod_rewrite), but I couldn’t make it work (a share link to a folder does not end with a trailing slash / which makes it difficult to map)

So, does anyone knows:

  • how to setup an anonymous access to Nextcloud ? (without password or as guest)
  • or how to pre-fill login page with a given user credentials ? (so users just have to click on the login button)

(I’m quite puzzled by finding nothing on that subject as it seems a classical one to me, so if I’ve ever missed something obvious, please let me know gently :slight_smile: By the way, I am a NextCloud user running two instances of NC11 on Ubuntu 14.04)

Thanks for your help

Hi

Did you see this? https://docs.nextcloud.com/server/11/user_manual/files/file_drop.html

Is that what you need?

Cheers zisuu

1 Like

Hi @zisuu

Thanks for your answer, I’ve already seen this. In fact what I need is not an anonymous upload but an anonymous “read” of a shared folder (and ideally without having to log in).

You could achieve this by just creating a public share without password, or not? But your Problem is that you’re not able to mount it then, did I get that right?

Not yet, but we’re getting closer :slight_smile:

I encountered one problem with the public share link (which URL is like https ://myNextCloud.org/abc123):

I need to map the share link to a domain, say https ://myDomain.org/. But I couldn’t achieve this with mod_proxy. In the virtual host definition of myDomain.org, I added:

ProxyPass "/index.html" https://myNextCloud.org/abc123
ProxyPassReverse "/index.html" https://myNextCloud.org/abc123

and this creates an almost infinite loop and doesn’t work.

So my question is splits in two parts:

  • either how to map a domain to a share link ?
  • or how to do this another way ?

A similar use case was already discussed here: