Disable https redirect (because many apps android companions that wont accept self signed certs)

Younohost is very aggressive about https. This is frustrating because there are many applications which work fine over plain http, and work fine over https with a proper signed root cert, but which flip out when you try to do anything with a self signed cert for a domain like https://example.local

This is particularly painful on android. I just spent several hours trying to get the invoice ninja android app to work, but it refuses to connect with a self signed cert. It would have been fine with plain http. but I cant get the domain to work on plain http. I have never been able to get any yunohost app to work with plain http.

I hav been tinkering with the configs and commenting out different lines in /etc/nginx/conf.d/domain.local.d/app.conf and /etc/nginx/conf.d/domain.local.conf but nothing is working. I’ve even commented out the entire

server {
    listen 443 ssl http2;

block. I’ve even changed:

  # Force usage of https
  if ($scheme = http) {
    rewrite ^ https://$server_name$request_uri? permanent;


  # Force usage of http
  if ($scheme = https) {
    rewrite ^ http://$server_name$request_uri? permanent;

and that did not work either. Either the domain redirects to https or it redirects to the admin page or it just wont work period.

I know I am not the first person to ask about this, and to head off the “why would you want to disable https?” questions, All of my stuff is hosted on a lan and is only accessible if you hop on the local wifi . once the application is installed, the server does not touch the internet. I am the only one who lives here.

There is zero need for https, but there is no option I can find or documentation availible for disable https on a particular app. I have in my history a command that I think I copy pasted from github yunohost settings set security.nginx.redirect_to_https -v False but It does not seem to have done anything.

Use the regenconf in fry run mode to see if you have some custom change that prevent the new configuration to be setup.

yunohost settings set security.nginx.redirect_to_https -v False 
yunohost tools regen-conf nginx --force --with-diff --dry-run

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.