codius / codiusd

Codius host server-side reference implementation
https://codius.org
Apache License 2.0
81 stars 10 forks source link

Request an user specific landing page #123

Open mkimid opened 6 years ago

mkimid commented 6 years ago

services/HttpServer.ts #53 ~

this.server.views({
  engines: {
    html: Handlebars
  },
  relativeTo: path.resolve(__dirname, '../'),
  path: 'templates'
})

In 1.2.x version, the landing page is fixed as above. If add an extra parameter in config as 'CODIUS_HOST_INDEX=....' and use it for resolving a path name, sever operator can design their own index file.

jmannanc commented 6 years ago

Couldn't you just edit the index.html file in the templates folder instead? Or do you mean something different?

mkimid commented 5 years ago

When upgrading the templates folder can be replaced, so, need to support the user specific folder to keep the whole landing pages safely