mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
copr-anubis: loosen policies (go through defaults), allow essentials
This commit is contained in:
@@ -33,13 +33,10 @@ SSLCryptoDevice builtin
|
||||
RequestHeader set X-Forwarded-Proto "https"
|
||||
RequestHeader set "X-Http-Version" "%{SERVER_PROTOCOL}s"
|
||||
|
||||
# /{{ cgit_uri }}/ goes through Anubis (configured with BASE_PREFIX=/{{ cgit_uri }})
|
||||
ProxyPass /{{ cgit_uri }}/ http://localhost:8987/{{ cgit_uri }}/
|
||||
ProxyPassReverse /{{ cgit_uri }}/ http://localhost:8987/{{ cgit_uri }}/
|
||||
|
||||
# Everything else goes directly to backend
|
||||
ProxyPass / http://localhost:8345/
|
||||
ProxyPassReverse / http://localhost:8345/
|
||||
# All traffic goes through Anubis for bot protection.
|
||||
# Policies control which endpoints are protected vs allowed in /etc/anubis/policies.yaml
|
||||
ProxyPass / http://localhost:8987/
|
||||
ProxyPassReverse / http://localhost:8987/
|
||||
|
||||
<FilesMatch "\.(cgi|shtml|phtml|php)$">
|
||||
SSLOptions +StdEnvVars
|
||||
|
||||
@@ -85,13 +85,10 @@ WSGIApplicationGroup %{GLOBAL}
|
||||
ProxyRequests Off
|
||||
ProxyVia Off
|
||||
|
||||
# /coprs/ goes through Anubis (configured with BASE_PREFIX=/coprs)
|
||||
ProxyPass /coprs/ http://127.0.0.1:8987/coprs/
|
||||
ProxyPassReverse /coprs/ http://127.0.0.1:8987/coprs/
|
||||
|
||||
# Everything else goes directly to backend
|
||||
ProxyPass / http://127.0.0.1:8345/
|
||||
ProxyPassReverse / http://127.0.0.1:8345/
|
||||
# All traffic goes through Anubis for bot protection.
|
||||
# Policies control which endpoints are protected vs allowed in /etc/anubis/policies.yaml
|
||||
ProxyPass / http://127.0.0.1:8987/
|
||||
ProxyPassReverse / http://127.0.0.1:8987/
|
||||
</VirtualHost>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user