Add bypass rules to Authelia access control for gitea API
This commit is contained in:
@@ -6,7 +6,19 @@ server:
|
|||||||
|
|
||||||
# Security https://www.authelia.com/configuration/security/access-control/
|
# Security https://www.authelia.com/configuration/security/access-control/
|
||||||
access_control:
|
access_control:
|
||||||
|
networks:
|
||||||
|
- name: 'internal'
|
||||||
|
networks:
|
||||||
|
- '192.168.1.0/24'
|
||||||
|
- '172.16.0.0/12'
|
||||||
rules:
|
rules:
|
||||||
|
- domain: 'gitea.tremendousturtle.tools'
|
||||||
|
policy: bypass
|
||||||
|
networks:
|
||||||
|
- 'internal'
|
||||||
|
resources:
|
||||||
|
- '^/api([/?].*)?$'
|
||||||
|
- '^/v2([/?].*)?$'
|
||||||
- domain: '*.tremendousturtle.tools'
|
- domain: '*.tremendousturtle.tools'
|
||||||
policy: two_factor
|
policy: two_factor
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user