The configuration for Shorty is stored in a JSON file. This file contains all of the configuration for the application.
The file structure is:
{
"server": {
"host": "hostname for the machine>",
"port": <port for the machine>
},
"templates": "<alternate path to templates directory>"
}server- This contains the definition of the server. The fields here will be used to define the URL provided when a link is shortened.host- the hostname or IP for the running server. Default:localhost.port- optional port number. Defaults to''.schema- the URI schema (httporhttps) to use. If not set or not valid,httpwill be used.
templates- If set, the path to the templates directory. If not set,src/templateswill be used.