Altinn / altinn-cdn

Static assets used by Altinn solutions and apps.
https://altinncdn.no
1 stars 30 forks source link

Update environments.json #122

Closed mijohansen closed 1 year ago

mijohansen commented 1 year ago

This proposition is to remove some complexity in our solutions. Just give the baseurl for the platform and the apps to the consumer. No need to build urls from the parts.

Description

Related Issue(s)

Verification

Documentation

altinnadmin commented 1 year ago

Seems like a "hack"? Repeating hostname a platform prefix, not removing anything, not doing the same for apps. @SandGrainOne what do you think?

SandGrainOne commented 1 year ago

It's a backwards compatible change. It might be possible to clean it up in the future.

ivarne commented 1 year ago

I think it looks good. Hostname just part of the url. I'm working on a suggestion for restructuring config for the new pdf service, and trying to reconstruct the full URL from the hostname is error prone. You need to add information about protocol and port number, and having the freedom to set them individually is a nice feature.