-# Process nginx template
-SOURCE="/etc/nginx/conf.d/peertube.template"
-TARGET="/etc/nginx/conf.d/default.conf"
-export WEBSERVER_HOST="default_server"
+# Process the nginx template
+SOURCE_FILE="/etc/nginx/conf.d/peertube.template"
+TARGET_FILE="/etc/nginx/conf.d/default.conf"
+export WEBSERVER_HOST="$PEERTUBE_WEBSERVER_HOSTNAME"