chore: Update server-stream.conf to include server name in vhost

This commit is contained in:
Théophile Diot 2024-06-03 16:55:55 +01:00
parent 0b8ef1743e
commit fbdf4f8065
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -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;