Currently nothing restricts the access to a running Paon template server, so it should be only reachable locally by the application in charge of handling user requests and not be exposed to the external network.
The server setting "accessibleFromExterior" is only meant to be used
if the service is running in a container or to expose it in a private network.
The easiest way to handle assets is to use the web server or reverse proxy that sits in front of the backend application and make it serve the content of dist/client/assets/ under the /assets/ path for any website.
If we want to serve assets from a different origin, under a different url or through a CDN, we need to modify the assetsBaseUrl in the site config file and set the base url you want to serve our assets from.
"assetsBaseUrl" : "https://my-assets.com/my-site/"Then, run a build command on the site's ressources, to generates bundled ressources that use the new asset paths.
npm run site:build my-siteℹ️ Even with a modified asset base url, all asssets paths will start with "/assets/"
ex : https://my-assets.com/my-site/assets/js/index.js