gawati / gawati-portal-ui

Version 2 of the gawati portal
GNU Affero General Public License v3.0
0 stars 0 forks source link

Consolidating URL / service address configuration #103

Closed ccsmart closed 6 years ago

ccsmart commented 6 years ago

We currently store URL /service configuration in portal-ui index.html. Similar to the move of auth.json configuration from portal-ui to portal-fe, same method can be applied for URL configuration so only PROXY is left in index.html.

kohsah commented 6 years ago

To Do: only
GAWATI_PROXY should remain in index.html The other two parameters should be moved into gawati.json in portal-fe. Same applies to profiles-ui.

kohsah commented 6 years ago

GAWATI_DOCUMENT_SERVER , GAWATI_PROFILES_SERVER settings in portal-ui index.html have been moved into portal-fe/configs/gawati.json:

{
    "internal" : {
        "gawati-portal-ui":{
            "urlBase": "http://localhost:3000"
        },
        "gawati-portal-fe":{
            "urlBase": "http://localhost:9001"
        },
        "gawati-profiles-ui":{
            "urlBase": "http://localhost:9004"
        },
        "gawati-profiles-fe":{
            "urlBase": "http://localhost:9003"
        }
    },
    "client": {
        "gawati-profiles-ui" : {
            "urlBase" : "http://localhost:9004"
        },
        "gawati-media-server": {
            "urlBase": "http://media.local"
        },
        "gawati-data-server" : {
            "urlBase": "http://data.local"
        }

    }
}

Specifically the client settings:

    "client": {
        "gawati-profiles-ui" : {
            "urlBase" : "http://localhost:9004"
        },
        "gawati-media-server": {
            "urlBase": "http://media.local"
        },
        "gawati-data-server" : {
            "urlBase": "http://data.local"
        }