mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 00:38:33 +02:00
chore(rules): update example to use new block syntax
This commit is contained in:
@@ -27,22 +27,21 @@ type (
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
proxy.app1.rules: |
|
proxy.app1.rules: |
|
||||||
- name: default
|
default {
|
||||||
do: |
|
rewrite / /index.html
|
||||||
rewrite / /index.html
|
serve /var/www/goaccess
|
||||||
serve /var/www/goaccess
|
}
|
||||||
- name: ws
|
header Connection Upgrade & header Upgrade websocket {
|
||||||
on: |
|
bypass
|
||||||
header Connection Upgrade
|
}
|
||||||
header Upgrade websocket
|
|
||||||
do: bypass
|
|
||||||
|
|
||||||
proxy.app2.rules: |
|
proxy.app2.rules: |
|
||||||
- name: default
|
default {
|
||||||
do: bypass
|
bypass
|
||||||
- name: block POST and PUT
|
}
|
||||||
on: method POST | method PUT
|
method POST | method PUT {
|
||||||
do: error 403 Forbidden
|
error 403 Forbidden
|
||||||
|
}
|
||||||
*/
|
*/
|
||||||
//nolint:recvcheck
|
//nolint:recvcheck
|
||||||
Rules []Rule
|
Rules []Rule
|
||||||
|
|||||||
Reference in New Issue
Block a user