Better config example

This commit is contained in:
claudemiro
2016-03-05 09:29:57 -03:00
parent 805e9e3957
commit cbdd4e428a
2 changed files with 16 additions and 37 deletions
+9 -19
View File
@@ -45,34 +45,24 @@ $ go install github.com/dimiro1/ipe
{ {
"Host": ":8080", "Host": ":8080",
"SSL": false, "SSL": false,
"SSLHost": ":8090", "SSLHost": ":4433",
"SSLKeyFile": "key.pem", "SSLKeyFile": "A key.pem file",
"SSLCertFile": "cert.pem", "SSLCertFile": "A cert.pem file",
"Apps": [ "Apps": [
{ {
"ApplicationDisabled": false, "ApplicationDisabled": false,
"Secret": "7ad3753142a6693b25b9", "Secret": "A really secret random string",
"Key": "278d525bdf162c739803", "Key": "A random Key string",
"OnlySSL": false, "OnlySSL": false,
"Name": "App 1", "Name": "The app name",
"AppID": "321", "AppID": "The app ID",
"UserEvents": true, "UserEvents": true,
"WebHooks": true, "WebHooks": true,
"URLWebHook": "http://127.0.0.1:4567/php/hook.php" "URLWebHook": "Some URL to send webhooks"
},
{
"ApplicationDisabled": false,
"Secret": "d6824d2fa32888931504",
"Key": "c8b30f611ffb13202976",
"OnlySSL": false,
"Name": "App 2",
"AppID": "123",
"UserEvents": true,
"WebHooks": false,
"URLWebHook": "http://127.0.0.1:4567/php/hook.php"
} }
] ]
} }
``` ```
## Libraries ## Libraries
+7 -18
View File
@@ -2,30 +2,19 @@
"Host": ":8080", "Host": ":8080",
"SSL": false, "SSL": false,
"SSLHost": ":4433", "SSLHost": ":4433",
"SSLKeyFile": "key.pem", "SSLKeyFile": "A key.pem file",
"SSLCertFile": "cert.pem", "SSLCertFile": "A cert.pem file",
"Apps": [ "Apps": [
{ {
"ApplicationDisabled": false, "ApplicationDisabled": false,
"Secret": "7ad3753142a6693b25b9", "Secret": "A really secret random string",
"Key": "278d525bdf162c739803", "Key": "A random Key string",
"OnlySSL": false, "OnlySSL": false,
"Name": "App 1", "Name": "The app name",
"AppID": "321", "AppID": "The app ID",
"UserEvents": true, "UserEvents": true,
"WebHooks": true, "WebHooks": true,
"URLWebHook": "http://127.0.0.1:4567/php/hook.php" "URLWebHook": "Some URL to send webhooks"
},
{
"ApplicationDisabled": false,
"Secret": "d6824d2fa32888931504",
"Key": "c8b30f611ffb13202976",
"OnlySSL": false,
"Name": "App 2",
"AppID": "123",
"UserEvents": true,
"WebHooks": false,
"URLWebHook": "http://127.0.0.1:4567/php/hook.php"
} }
] ]
} }