Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Should the URL of the "Social Nextcloud App" also change when you change the subdomain of "Nextcloud Cloudron app" ?

    Nextcloud
    2
    3
    184
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JOduMonT
      JOduMonT last edited by

      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 1 Reply Last reply Reply Quote 0
      • JOduMonT
        JOduMonT @girish last edited by

        @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

        1. overwrite.cli.url have to be set properly (which Cloudron take care of)
        2. than do a reset /occ social:reset
          sudo -u www-data php occ

        which result with this "bug"
        so I'll wait to see

        1 Reply Last reply Reply Quote 2
        • girish
          girish Staff @JOduMonT last edited by

          @jodumont Are you refering to the cloud_url and social_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 give https://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/”,
          
          JOduMonT 1 Reply Last reply Reply Quote 3
          • JOduMonT
            JOduMonT @girish last edited by

            @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

            1. overwrite.cli.url have to be set properly (which Cloudron take care of)
            2. than do a reset /occ social:reset
              sudo -u www-data php occ

            which result with this "bug"
            so I'll wait to see

            1 Reply Last reply Reply Quote 2
            • First post
              Last post
            Powered by NodeBB