aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2016-12-18 14:28:48 +0300
committerIgor Pashev <pashev.igor@gmail.com>2016-12-18 14:31:10 +0300
commitc80b3f7579ba01fbc37fa7237c75091167c51dbf (patch)
treee8d7ef9ab622b2ba25152bde36265b907ce88737
parent2fd0d8ccb75067e7ce71ecb5c663be3a2040cf28 (diff)
downloadsproxy2-c80b3f7579ba01fbc37fa7237c75091167c51dbf.tar.gz
sproxy.sql: updated example
SQL wildcards are no longer supported for HTTP methods
-rw-r--r--sproxy.sql5
1 files changed, 4 insertions, 1 deletions
diff --git a/sproxy.sql b/sproxy.sql
index bd2a948..0e9f94c 100644
--- a/sproxy.sql
+++ b/sproxy.sql
@@ -166,7 +166,10 @@ CREATE TABLE IF NOT EXISTS group_privilege (
INSERT INTO group_member ("group", email) VALUES ('dev', '%');
INSERT INTO privilege (domain, privilege) VALUES ('example.com', 'full');
INSERT INTO group_privilege ("group", domain, privilege) VALUES ('dev', 'example.com', 'full');
- INSERT INTO privilege_rule (domain, privilege, path, method) VALUES ('example.com', 'full', '%', '%');
+ INSERT INTO privilege_rule (domain, privilege, path, method) VALUES ('example.com', 'full', '%', 'GET');
+ INSERT INTO privilege_rule (domain, privilege, path, method) VALUES ('example.com', 'full', '%', 'HEAD');
+ INSERT INTO privilege_rule (domain, privilege, path, method) VALUES ('example.com', 'full', '%', 'POST');
+ INSERT INTO privilege_rule (domain, privilege, path, method) VALUES ('example.com', 'full', '%', 'PUT');
*/
END;