Skip to content
m67hoff edited this page Sep 10, 2018 · 3 revisions

configuration

🔧 Beta version: docu and setup currently under work!

npm module config

config systemd to run asperabrowser as service and start the service

asperabrowser --config

check status

asperabrowser -s

(optional) copy config files for customization

asperabrowser --defaults

node.js server config

serverconfig.json:

{
    "LOGLEVEL": "info",
    "PORT": 8888,
    "FIXED_NODEAPI_URL": "",
    "FIXED_NODEAPI_USER": "",
    "FIXED_NODEAPI_PASS": "",
    "ENABLE_CORS": true,
    "CORS_ORIGIN": "http://localhost:4200",
    "HTTPS_PORT": 44344,
    "USE_HTTPS": false
}

Angular app - client side config

webappconfig.json:

{
    "app": {
        "logLevel": "INFO",
        "apiConnectProxy": "http://localhost:8888",
        "isFixedURL": false,
        "fixedURL": "",
        "isFixedConnectAuth": false,
        "fixedConnectAuth": false,
        "enableGoto": true,
        "enableCredLocalStorage": true,
        "defaultCred": {
            "nodeURL": "https://demo.asperasoft.com:9092",
            "nodeUser": "asperaweb",
            "nodePW": "demoaspera",
            "useTokenAuth": false
        },
        "connectInstaller": "//d3gcli72yxqn2z.cloudfront.net/connect/v4"
    },
    "config": {
        "enableLocalConfig": true,
        "localConfigKeys": [
            "logLevel",
            "apiConnectProxy"
        ]
    }
}