ERROR: This application requires HTTPS in order to work safely

qnap
#1

Nextcloud version (eg, 12.0.2) :15.0.0
Operating system and version (eg, Ubuntu 17.04) :Ubuntu Xenial
Apache or nginx version (eg, Apache 2.4.25) : Qapache 2439.7217
PHP version (eg, 7.1) : 5.6.38

The issue you are facing: This application requires HTTPS in order to work safely.

Is this the first time you’ve seen this error? (Y/N) :Y

Steps to replicate it:

  1. Enable Password app
  2. Use Passwords app
  3. Get HTTPS error

I am beginning from ground zero. I have Nextcloud up and running with everything I need working except Password. I have never been able to figure out how to enable https for Nextcloud on a Qnap 453A NAS. I have looked at everything I could find on the subject but I am not confident in my abilities to figure this out without a step by step.

Does anyone know of any video or very detailed tutorial that I might have missed? Or anyone willing to take on the task of showing someone (me) who can get in with SSH and WinSCP and poke around but that is about the extent of my knowledge. I hit all the links on the error message below but they were way over my head. I am clueless as to where to begin.

#2

To me it looks like your Nextcloud container is running behind a proxy. But that proxy does not set the HTTPS_FORWARDED_* headers and Nextcloud is not configured to trust that proxy.

So first you should check the configuration of the proxy so that it forwards the headers. On nginx you need to add something like this to the proxy section of the configuration.

proxy_set_header  Host              $host;
proxy_set_header  X-Real-IP         $remote_addr;
proxy_set_header  X-Forwarded-For   $proxy_add_x_forwarded_for;
proxy_set_header  X-Forwarded-Proto https;
proxy_set_header  X-Forwarded-Port  443;

Then you should follow the documentation to make Nextcloud trust the proxy and use HTTPS as protocol.

#3

Thank you for the response and the info. I spent a couple of hours reading articles on the info you provided. It’s way over my head at this point. I don’t have the slightest clue where to begin on a QNAP NAS setup. If I am using a proxy, I didn’t explicitly set it that way myself so it must be integrated in the setup in some way.

I’ll have to regroup, continue using BitWarden, and perhaps revisit this at some point later when I have some time to learn about proxies, nginx, and https. I appreciate the time you took to respond.
JS

#4

maybe this setup/hints will help you in one or another way… and after you got https running using passwords shouldnt be any major problem

1 Like