aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/bans_locations
blob: a514ccf44c9e973a84373aef98fbde210d04f241 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
<?py for board in set().union(global_boards, board_bans.keys()): ?>
location /#{board}/ {
    <?py if board in global_boards: ?>
    if ($bans_global) { rewrite ^ /cgi/banned; }
    <?py #endif ?>
    <?py if board in board_bans: ?>
    if ($bans_#{board}) { rewrite ^ /cgi/banned; }
    <?py #endif ?>
}
<?py #endfor ?>