2 question, help pls

,

Nextcloud version : 20.0.6
Operating system and version : Ubuntu-server 20.04
Apache or nginx version : Apache 2.4
PHP version : 7.4

Hello i have 2 problems

  1. When I enter my domain name into the address bar not from the local network, then 9443 is assigned to the domain, but my server is on port 443 and 80, help me how to fix it

------------------------------------------------- i found the answer ----------------------------------------------
It was necessary to remove port forwarding in the apache2 config for the adminer site
Path to config
/etc/apache2/sites-enabled/adminer.conf

This RewriteRule ^(.*)$ https://%{HTTP_HOST}:9443 [R=301,L]
On this RewriteRule ^(.*)$ https://%{HTTP_HOST} [R=301,L]

  1. I put the server on a pc where ubuntu-server is installed, made a disk backup using clonezilla, but when I restored the disk to the image of the virtual machine, it does not want to get the ip address and put the docker ip address. How fix it?

thank you in advance

The config.php:

<?php
$CONFIG = array (
  'passwordsalt' => 'x',
  'secret' => 'x',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '192.168.0.60',
    2 => 'x',
    3 => 'x',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '20.0.6.1',
  'overwrite.cli.url' => 'x',
  'dbname' => 'x',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'x',
  'dbpassword' => 'x',
  'installed' => true,
  'instanceid' => 'oc4vazk434kc',
  'upgrade.disable-web' => 'true',
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => '2',
  'log.condition' =>
  array (
    'apps' =>
    array (
      0 => 'admin_audit',
    ),
  ),
  'mail_smtpmode' => 'smtp',
  'remember_login_cookie_lifetime' => '1800',
  'log_rotate_size' => '10485760',
  'trashbin_retention_obligation' => 'auto, 180',
  'versions_retention_obligation' => 'auto, 365',
  'simpleSignUpLink.shown' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 0,
    'password' => '',
  ),
  'logtimezone' => 'Asia',
  'htaccess.RewriteBase' => '/',
  'enable_previews' => true,
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\MarkDown',
    5 => 'OC\\Preview\\MP3',
    6 => 'OC\\Preview\\TXT',
    7 => 'OC\\Preview\\Movie',
    8 => 'OC\\Preview\\Photoshop',
    9 => 'OC\\Preview\\SVG',
    10 => 'OC\\Preview\\TIFF',
  ),
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'maintenance' => false,
  'app_install_overwrite' =>
  array (
    0 => 'files_clipboard',
    1 => 'metadata',
    2 => 'sharerenamer',
    3 => 'uploaddetails',
    4 => 'admin_notifications',
    5 => 'dropit',
    6 => 'audioplayer',
  ),
  'mail_from_address' => 'x',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'x',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'x',
  'mail_smtppassword' => 'x',
  'mail_smtpport' => '465',
  'mail_smtphost' => 'x,
  'mail_smtpsecure' => 'ssl',
);![9VYCkIQ - Imgur|690x341](upload://uRIdVzeNFoCtteQJ2DrajIBuGdu.png)