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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. Should the URL of the "Social Nextcloud App" also change when you change the subdomain of "Nextcloud Cloudron app" ?

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

Scheduled Pinned Locked Moved Solved Nextcloud
3 Posts 2 Posters 575 Views 2 Watching
  • 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.
  • JOduMonTJ Offline
    JOduMonTJ Offline
    JOduMonT
    wrote on last edited by
    #1

    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

    girishG 1 Reply Last reply
    0
    • girishG girish

      @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/”,
      
      JOduMonTJ Offline
      JOduMonTJ Offline
      JOduMonT
      wrote on last edited by
      #3

      @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
      2
      • JOduMonTJ JOduMonT

        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

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        @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/”,
        
        JOduMonTJ 1 Reply Last reply
        3
        • girishG girish

          @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/”,
          
          JOduMonTJ Offline
          JOduMonTJ Offline
          JOduMonT
          wrote on last edited by
          #3

          @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
          2
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search