From b85057c7e24560e94c1ad6033ac00623f6bdd4ba Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Mon, 5 Dec 2016 19:12:41 +0300 Subject: datafile.yml.example -> datafile.example.yml --- README.md | 2 +- datafile.example.yml | 34 ++++++++++++++++++++++++++++++++++ datafile.yml.example | 34 ---------------------------------- sproxy2.cabal | 2 +- 4 files changed, 36 insertions(+), 36 deletions(-) create mode 100644 datafile.example.yml delete mode 100644 datafile.yml.example diff --git a/README.md b/README.md index 1dfa94c..e69ed6e 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ Permissions system ------------------ Permissions are stored in internal SQLite3 database and imported from data sources, which can be a PostgreSQL database or a file. See -[sproxy.sql](./sproxy.sql) and [datafile.yml.example](./datafile.yml.example) +[sproxy.sql](./sproxy.sql) and [datafile.example.yml](./datafile.example.yml) for details. Do note that Sproxy2 fetches only `group_member`, `group_privilege` diff --git a/datafile.example.yml b/datafile.example.yml new file mode 100644 index 0000000..85d88b9 --- /dev/null +++ b/datafile.example.yml @@ -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 + diff --git a/datafile.yml.example b/datafile.yml.example deleted file mode 100644 index 85d88b9..0000000 --- a/datafile.yml.example +++ /dev/null @@ -1,34 +0,0 @@ ---- # 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 - diff --git a/sproxy2.cabal b/sproxy2.cabal index 178b435..e3ae2bc 100644 --- a/sproxy2.cabal +++ b/sproxy2.cabal @@ -17,7 +17,7 @@ cabal-version: >= 1.20 extra-source-files: ChangeLog.md README.md - datafile.yml.example + datafile.example.yml sproxy.example.yml sproxy.sql -- cgit v1.2.3