From e0739aac9da023f19b1eddee8fd5c00df983fc51 Mon Sep 17 00:00:00 2001 From: Andrew Krasichkov Date: Tue, 4 Apr 2017 00:12:22 +0300 Subject: [PATCH] [origins] Added https_only tests --- tests/plugins/simply/origins/origin_https.conf | 5 +++++ tests/plugins/simply/origins/origin_https_fp.conf | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 tests/plugins/simply/origins/origin_https.conf create mode 100644 tests/plugins/simply/origins/origin_https_fp.conf diff --git a/tests/plugins/simply/origins/origin_https.conf b/tests/plugins/simply/origins/origin_https.conf new file mode 100644 index 0000000..0fdec6e --- /dev/null +++ b/tests/plugins/simply/origins/origin_https.conf @@ -0,0 +1,5 @@ +# Options: {"domains": ["yandex.ru"], "https_only": true} + +if ($http_origin !~ '^https?:\/\/yandex\.ru\/') { + +} \ No newline at end of file diff --git a/tests/plugins/simply/origins/origin_https_fp.conf b/tests/plugins/simply/origins/origin_https_fp.conf new file mode 100644 index 0000000..88dac17 --- /dev/null +++ b/tests/plugins/simply/origins/origin_https_fp.conf @@ -0,0 +1,5 @@ +# Options: {"domains": ["yandex.ru"], "https_only": true} + +if ($http_origin !~ '^https:\/\/yandex\.ru\/') { + +} \ No newline at end of file