Add access control for IPs for the admin page. #188
This commit is contained in:
parent
a1408c618c
commit
49870768ac
1 changed files with 7 additions and 0 deletions
|
|
@ -59,3 +59,10 @@ security:
|
|||
|
||||
access_decision_manager:
|
||||
strategy: unanimous
|
||||
|
||||
access_control:
|
||||
- {path: ^/capi, roles: IS_AUTHENTICATED_FULLY}
|
||||
- {path: ^/rapi, roles: IS_AUTHENTICATED_FULLY}
|
||||
- {path: ^/api, roles: IS_AUTHENTICATED_FULLY}
|
||||
- {path: ^/*, roles: IS_AUTHENTICATED_FULLY, ip: 192.168.56.1}
|
||||
- {path: ^/*, roles: ROLE_NO_ACCESS}
|
||||
|
|
|
|||
Loading…
Reference in a new issue