diff --git a/.gitignore b/.gitignore index ceaea36..3ca19d9 100644 --- a/.gitignore +++ b/.gitignore @@ -130,3 +130,5 @@ dist .yarn/install-state.gz .pnp.* +# Routemap ignore +routemap.txt diff --git a/routemap.txt b/routemap.txt index ff0158d..21000f1 100644 --- a/routemap.txt +++ b/routemap.txt @@ -1,15 +1,14 @@ 127.0.0.1:9889 { + import antiddos; type revHTTP; target https://example.org; # RRR + + querylimit 0; domain localhost { firewall whitelist GLOBAL; type revHTTP; target https://github.com; }; - domain domain.loc { - import example; - testi; - }; } 127.0.0.1:7889 { diff --git a/routemap.txt.custom b/routemap.txt.custom new file mode 100644 index 0000000..ff0158d --- /dev/null +++ b/routemap.txt.custom @@ -0,0 +1,38 @@ +127.0.0.1:9889 { + type revHTTP; + target https://example.org; # RRR + domain localhost { + firewall whitelist GLOBAL; + type revHTTP; + target https://github.com; + }; + domain domain.loc { + import example; + testi; + }; +} + +127.0.0.1:7889 { + import example, example_custom_auth; + type revHTTP; + target https://google.com; + auth loopback admin qwerty; + #cauth admin 123; + cert public ./tests/pub.crt; + cert private ./tests/priv.key; +} + +127.0.0.1:9999 { + type redirectHTTP; + target https://duckduckgo.com; + domain localhost { + type revHTTP; + target https://google.com; + } +} + +127.0.0.1:8081 { + type simpleHTTP; + target /; + #showdir; +}