ref(main): move code to setup configuration into a dedicated function
ref(main): move code to setup configuration into a dedicated function

Make sure the code to set type and version on uwsgi is executed before
we load the configuration.

arenaoftitans/arena-of-titans-api,arenaoftitans/arena-of-titans-api