business-partner-agent icon indicating copy to clipboard operation
business-partner-agent copied to clipboard

Running under context-path

Open Echsecutor opened this issue 4 years ago • 3 comments
trafficstars

I would like to run the BPA under a context path such as e.g. comapnyX in https://example.com/companyX . This makes it easier to run more than one instance of the BPA on the same host, in particular for testing/demo purposes.

Echsecutor avatar Jun 15 '21 21:06 Echsecutor

In principle it should be possible to set the context path in the application.yml like so https://docs.micronaut.io/latest/guide/configurationreference.html#io.micronaut.http.server.HttpServerConfiguration

Some more fiddling with the login paths is needed (also in the application.yml) and there is an absolute path /login in backend/business-partner-agent/src/main/resources/views/signin.hbs which should be ../login. But basically the above mentioned context-path for micronaut does not seem to work.

I will stop working on this for now and just register more subdomains, but leave the feature request here for discussion.

Echsecutor avatar Jun 15 '21 21:06 Echsecutor

This would also include changes for did:web mode since this would affect the did.

did:web:example.com:companyX -> https://example.com/companyX/did.json

domwoe avatar Jun 16 '21 11:06 domwoe

Nice idea @Echsecutor. If we want to support that , also the helm chart has to be adopted. Currently it has some default configuration for ingress and so based on a "URL suffix" - which is basically the domain or a subdomain: https://github.com/hyperledger-labs/business-partner-agent-chart/blob/main/charts/bpa/values.yaml#L10

frank-bee avatar Jun 16 '21 14:06 frank-bee