Skip to content

Commit

Permalink
fix action matches
Browse files Browse the repository at this point in the history
  • Loading branch information
dancorrigan1 committed Nov 29, 2024
1 parent a8fdb6f commit d0ae85d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/nginx-site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ server {
}
{% if not live | bool %}
# block live
if ($arg_action ~* ^(get_live)$) {
if ($arg_action ~* ^(get_live_categories|get_live_streams)$) {
return 403;
}
{% endif %}
{% if not vod | bool %}
# block vod
if ($arg_action ~* ^(get_vod)$) {
if ($arg_action ~* ^(get_vod_categories|get_vod_streams|get_vod_info)$) {
return 403;
}
{% endif %}
Expand Down Expand Up @@ -106,13 +106,13 @@ server {
}
{% if not live | bool %}
# block live
if ($arg_action ~* ^(get_live)$) {
if ($arg_action ~* ^(get_live_categories|get_live_streams)$) {
return 403;
}
{% endif %}
{% if not vod | bool %}
# block vod
if ($arg_action ~* ^(get_vod)$) {
if ($arg_action ~* ^(get_vod_categories|get_vod_streams|get_vod_info)$) {
return 403;
}
{% endif %}
Expand Down

0 comments on commit d0ae85d

Please sign in to comment.