How to change path "localhost"


I have installed nextcloud via snap (Ubuntu 18.10, Nextcloud 14). To start with it I use the URL “localhost” in the browser and everything works fine.
When I like to sync fotos from my smartphone with the nextcloud app then I cant use “localhost”.
My questions:

  • how can I change the URL and what ist recommended? Which URL should I use for the app?
  • how can I change to SSL ("$ sudo nextcloud.enable-https self-signed" - is it although possible for snap)?

Thank you in advance

A post was pinned recently for issues faced by snap users. Maybe ask there