Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version 15.0.4:
Operating system and version FreeNAS-11.2-RELEASE-U1:
Apache or nginx version nginx 1.14.2:
PHP version 7.1.26:
The issue you are facing:
I have setup a brand new NextCloud plugin within FreeNAS using the FreeNAS plugin menu. When I attempt to share a file by using a link, I get the link http://192.168.48.241/index.php/s/MkQ4bmfGtrfaEdc. I want the link generated to use a DNS name rather than using the private IP address.
I have added a DNS name to the trusted_domain section of the config and even set the overwrite.cli.url option to have the DNS name. However, after restarting the plugin, there is no change to the share links that I create, either for the same files or new files.
The question is what configuration changes need to be made so that when I share a file using a link, the link will have the DNS name rather than the private IP address?
Is this the first time you’ve seen this error? Y:
Steps to replicate it:
- Setup NextCloud using default settings, a private IP Address and no use of DNS names
- Share a file using Link
- Review the link to show it using a private IP Address
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'apps_paths' =>
array (
0 =>
array (
'path' => '/usr/local/www/nextcloud/apps',
'url' => '/apps',
'writable' => true,
),
1 =>
array (
'path' => '/usr/local/www/nextcloud/apps-pkg',
'url' => '/apps-pkg',
'writable' => true,
),
),
'logfile' => '/var/log/nextcloud/nextcloud.log',
'memcache.local' => '\\OC\\Memcache\\APCu',
'instanceid' => 'oc19p52m1xag',
'passwordsalt' => 'v/XNejlmImpfMSWyDN7VORrmcJ9RvZ',
'secret' => 'urScqWOjQaRp9uktQTwAZB4sErA6qv8s7Dph5fAOKD2zbgvN',
'trusted_domains' =>
array (
0 => '<A domain name>',
1 => '192.168.48.241',
),
'datadirectory' => '/mnt/storage',
'dbtype' => 'mysql',
'version' => '15.0.4.0',
'overwrite.cli.url' => '<A doamin name>',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_<db admin account>',
'dbpassword' => 'IjOLMcUU+5wtGHNgdUTNRaOW/2jp0+',
'installed' => true,
);