Should the URL of the "Social Nextcloud App" also change when you change the subdomain of "Nextcloud Cloudron app" ?
-
Happy New Year!
I hope my title is not too confusing
my question is
when via the cloudron interface you change the subdomain for the application Nextcloud and you have the "nextcloud app" called social
should the this one also changed the domain name ?Because without change it the Social Apps will not be able to communicate with the Federated Network.
potential solution is to hardcode the domain in the config file
-
@girish said in Should the URL of the "Social Nextcloud App" also change when you change the subdomain of "Nextcloud Cloudron app" ?:
“cloud_url”: getenv('CLOUDRON_APP_ORIGIN'),
“social_url”: getenv('CLOUDRON_APP_ORIGIN') . '/nextcloud/index.php/apps/social/”,I did edit ./config/config.php via de the file manager and add those to line
'cloud_url': getenv('CLOUDRON_APP_ORIGIN'), 'social_url': getenv('CLOUDRON_APP_ORIGIN') . '/nextcloud/index.php/apps/social/',
but it didn't work
So I dig a little bit more and found the solution here- overwrite.cli.url have to be set properly (which Cloudron take care of)
- than do a reset /occ social:reset
sudo -u www-data php occ
which result with this "bug"
so I'll wait to see -
@jodumont Are you refering to the
cloud_url
andsocial_url
settings ? If so, you have to edit the config file and change them. Currently, the package only adjusts the URL of the main nextcloud installation. In theory, plugins should reference this value instead of hardcoding it.Since it's just a PHP file, an idea is to use
getenv('CLOUDRON_APP_ORIGIN')
. This will givehttps://subdomain.domain.com
as you have configured it in Cloudron.So (untested):
“cloud_url”: getenv('CLOUDRON_APP_ORIGIN'), “social_url”: getenv('CLOUDRON_APP_ORIGIN') . '/nextcloud/index.php/apps/social/”,
-
@girish said in Should the URL of the "Social Nextcloud App" also change when you change the subdomain of "Nextcloud Cloudron app" ?:
“cloud_url”: getenv('CLOUDRON_APP_ORIGIN'),
“social_url”: getenv('CLOUDRON_APP_ORIGIN') . '/nextcloud/index.php/apps/social/”,I did edit ./config/config.php via de the file manager and add those to line
'cloud_url': getenv('CLOUDRON_APP_ORIGIN'), 'social_url': getenv('CLOUDRON_APP_ORIGIN') . '/nextcloud/index.php/apps/social/',
but it didn't work
So I dig a little bit more and found the solution here- overwrite.cli.url have to be set properly (which Cloudron take care of)
- than do a reset /occ social:reset
sudo -u www-data php occ
which result with this "bug"
so I'll wait to see