#!/bin/bash
set | grep -aw QLOUD_HTTP_PORT
envsubst < "/tmp/direct-handles-static.conf.tmpl" > "/etc/nginx/sites-enabled/direct-handles-static.conf"
envsubst < "/usr/share/nginx/www/resources/js/constants.js.tmpl" > "/usr/share/nginx/www/resources/js/constants.js"
exec nginx -g 'daemon off;'
