summaryrefslogtreecommitdiff
path: root/config/defaults.yml
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-11-18 15:44:54 -0800
committerjessib <jessib@riseup.net>2013-11-18 15:44:54 -0800
commit8e9b65b01bbd9d44d4077d94f2dc4ac375cf8e85 (patch)
treec6e59e7a1e837b8cf759948acd8874594e54e19d /config/defaults.yml
parentd2eaffde87286c0cc9c0658503a60706759f7f51 (diff)
Start of service level code, which will be tweaked
* stores desired & effective service level * whenever desired level is changed, effective level will be updated * allows user to set their desired service level * allow admin to update desired & effective service level
Diffstat (limited to 'config/defaults.yml')
-rw-r--r--config/defaults.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/config/defaults.yml b/config/defaults.yml
index c7c8502..c986d01 100644
--- a/config/defaults.yml
+++ b/config/defaults.yml
@@ -41,12 +41,33 @@ common: &common
# handles that will be allowed despite being in /etc/passwd or rfc2142
handle_whitelist: []
+service_levels: &service_levels
+ service_levels:
+ 0:
+ name: anonymous
+ cert_prefix: "LIMITED"
+ description: "anonymous account, with rate limited VPN"
+ 1:
+ name: free
+ cert_prefix: "LIMITED"
+ description: "free account, with rate limited VPN"
+ cost: 0
+ quota: 100
+ 2:
+ name: premium
+ cert_prefix: "UNLIMITED"
+ description: "premium account, with unlimited vpn"
+ cost:
+ USD: 10
+ EUR: 10
+ default_service_level: 1
development:
<<: *downloads
<<: *dev_ca
<<: *cert_options
<<: *common
+ <<: *service_levels
admins: [blue, admin, admin2]
domain: example.org
secret_token: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
@@ -57,6 +78,7 @@ test:
<<: *dev_ca
<<: *cert_options
<<: *common
+ <<: *service_levels
admins: [admin, admin2]
domain: test.me
secret_token: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
@@ -66,6 +88,7 @@ production:
<<: *downloads
<<: *cert_options
<<: *common
+ <<: *service_levels
admins: []
domain: example.net
payment: []