diff --git a/src/common/confs/server-stream/server-stream.conf b/src/common/confs/server-stream/server-stream.conf index 84805a79e..25fefc011 100644 --- a/src/common/confs/server-stream/server-stream.conf +++ b/src/common/confs/server-stream/server-stream.conf @@ -1,4 +1,6 @@ server { + # server name (vhost) + server_name '{{ SERVER_NAME.split(" ")[0] }}'; # listen {% if LISTEN_STREAM == "yes" +%} @@ -18,7 +20,6 @@ server { set $reason ''; set $reason_data ''; set $ctx_ref ''; - set $server_name '{{ SERVER_NAME.split(" ")[0] }}'; # include config files include {{ NGINX_PREFIX }}server-stream/*.conf;