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 Bad location: api is reserved

    Support
    2
    4
    167
    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.
    • T
      tamayers last edited by

      why is this reserved for ALL domains? I want to host an app at api.*****.com but I am blocked from that.

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        @tamayers This is a left-over from the past. We had some plans for making api.<domain> as the REST API and my.<domain> as the UI/dashboard. I have removed the check now.

        You can do this:

        • Edit the file /home/yellowtent/box/src/domains.js. In function validateHostname, there is an array RESERVED_LOCATIONS. Just remove the first line constants.API_LOCATION from there. And then systemctl restart box.
        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff last edited by

          https://git.cloudron.io/cloudron/box/commit/88fa4cf1880c8e7a30066bc04e597a6b4e0f1507 is the patch

          1 Reply Last reply Reply Quote 0
          • T
            tamayers last edited by

            Thanks @girish!

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