#!/usr/bin/env bash

envsubst '\$TRAVEL_UNIT_NAME' \
    < /etc/nginx/conf.d/01-accesslog-tskv.conf > temp.conf \
    && mv temp.conf /etc/nginx/conf.d/01-accesslog-tskv.conf

envsubst '\$APPLICATION_HTTP_PORT' \
    < /etc/nginx/listen > listen.temp \
    && mv listen.temp /etc/nginx/listen
