diff --git a/templates/nginx_stream_ssl_map.conf.j2 b/templates/nginx_stream_ssl_map.conf.j2 index a15df78..af1d604 100644 --- a/templates/nginx_stream_ssl_map.conf.j2 +++ b/templates/nginx_stream_ssl_map.conf.j2 @@ -35,7 +35,11 @@ map $ssl_preread_server_name $is_restricted { ~^immich-ml\.services\.atlantishq\.de$ 1; } -map "$is_restricted:$priviledged_networks" $block_connection { +map $ssl_preread_server_name $selected_network { + ~^immich-ml\.services\.atlantishq\.de$ $priviledged_networks; +} + +map "$is_restricted:$selected_network" $block_connection { default 0; "1:0" 1; }