aboutsummaryrefslogtreecommitdiff
path: root/datafile.yml.example
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2016-11-26 21:41:59 +0300
committerIgor Pashev <pashev.igor@gmail.com>2016-11-26 22:53:16 +0300
commitbe9b6f68a60bec0cda4b905e9311a9076f778976 (patch)
treec7328a9358746ed01959c048f1bc1e3001b86ee4 /datafile.yml.example
parent33ab0b2f945b8f4995f77c3246eb3c3f1b9d6df4 (diff)
downloadsproxy2-be9b6f68a60bec0cda4b905e9311a9076f778976.tar.gz
Populate permission database from a file
Diffstat (limited to 'datafile.yml.example')
-rw-r--r--datafile.yml.example34
1 files changed, 34 insertions, 0 deletions
diff --git a/datafile.yml.example b/datafile.yml.example
new file mode 100644
index 0000000..85d88b9
--- /dev/null
+++ b/datafile.yml.example
@@ -0,0 +1,34 @@
+--- # Data file. Don't remove this line. This is YAML: https://en.wikipedia.org/wiki/YAML
+
+group_member:
+ - group: "devops"
+ email: "%"
+
+ - group: "foo"
+ email: "%"
+
+
+group_privilege:
+ - group: "foo"
+ domain: "example.com"
+ privilege: "full"
+
+ - group: "devops"
+ domain: "example.com"
+ privilege: "full"
+
+
+privilege_rule:
+ - domain: "example.com"
+ privilege: "full"
+ path: "%"
+ method: "GET"
+
+ - domain: "example.com"
+ privilege: "full"
+ path: "%"
+ method: "POST"
+
+
+... # End of data file. Don't remove this line. This is YAML: https://en.wikipedia.org/wiki/YAML
+