Skip to content

Commit d158049

Browse files
committed
Limit write access to the API
1 parent fef3786 commit d158049

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker/test.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ server {
1010
}
1111

1212
location /api {
13+
limit_except GET {
14+
allow 172.0.0.0/8;
15+
deny all;
16+
}
1317
api write=on;
1418
}
1519
}

0 commit comments

Comments
 (0)