blob: 87ac1b7e9cf08ca9c199923fbb1cd33294e48129 (
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/#{board}; }
<?py #endif ?>
}
<?py #endfor ?>
|