How to make https for the external address and http for internal owncloud?

Good day

Tell me how to do it in OwnCloud, so that when the person comes from the outside, he was forcibly assigned to the Protocol https://, and when the person goes via the internal network remain http ?

<?php
$CONFIG = array (
 'instanceid' =--> ",
 'paste' => ",
 'secret' => ",
 'trusted_domains' => 
 array (
 0 => 'srv.*.EN',
 1 => '192.168.1.100',
),
 'datadirectory' => '/home/admin/web/srv.*.ru/public_html/owncloud/data',
 'overwrite.cli.url' => 'http://srv.*.EN/owncloud',
 'forcessl' => true,
 'dbtype' => 'mysql',
 'version' => '8.2.5.2',
 'dbname' => ",
 'dbhost' => 'localhost',
 'dbtableprefix' => 'oc_',
 'dbuser' => ",
 'dbpassword' => ",
 'logtimezone' => 'UTC',
 'installed' => true,
 'theme' => ",
 'loglevel' => 2,
 'maintenance' => false,
 'appstore.experimental.enabled' => true,
);
July 9th 19 at 10:58

Find more questions by tags Digital certificatesHTTPSownCloud