aboutsummaryrefslogtreecommitdiffstats
path: root/etc/config.ini
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2018-07-06 05:16:40 -0400
committerxudan <xudan16@huawei.com>2018-07-06 05:21:42 -0400
commitb3e40f026d655501bfa581452c447784604ecb05 (patch)
tree406f8bfc1abc1b33f98153d03abd34ef7b0e2fe9 /etc/config.ini
parentb1b0ea32d1a296c7d055c5391261dcad6be48c63 (diff)
Move all web portal code to the new repo dovetail-webportal
This is only the first step to simply copy the file here. There still need some more work to make sure all work well. All the changes will be submitted with other patches to make it easily to review. JIRA: DOVETAIL-671 Change-Id: I64d32a9df562184166b6199e2719f298687d1a0a Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'etc/config.ini')
-rw-r--r--etc/config.ini94
1 files changed, 94 insertions, 0 deletions
diff --git a/etc/config.ini b/etc/config.ini
new file mode 100644
index 0000000..2cf08cc
--- /dev/null
+++ b/etc/config.ini
@@ -0,0 +1,94 @@
+# to add a new parameter in the config file,
+# the CONF object in config.ini must be updated
+[mongo]
+# URL of the mongo DB
+# Mongo auth url => mongodb://user1:pwd1@host1/?authSource=db1
+url = mongodb://127.0.0.1:27017/
+dbname = test_results_collection
+
+[api]
+# Listening port
+url = http://localhost:8000/api/v1
+port = 8011
+log_file = /home/testapi/logs/api/api.log
+
+# Number of results for one page (integer value)
+results_per_page = 20
+
+# With debug_on set to true, error traces will be shown in HTTP responses
+debug = True
+authenticate = False
+
+[swagger]
+base_url = http://localhost:8000
+
+[ui]
+url = http://localhost:8000
+
+[osid]
+
+# OpenStackID Auth Server URI. (string value)
+openstack_openid_endpoint = https://openstackid.org/accounts/openid2
+
+# OpenStackID logout URI. (string value)
+openid_logout_endpoint = https://openstackid.org/accounts/user/logout
+
+# Interaction mode. Specifies whether Openstack Id IdP may interact
+# with the user to determine the outcome of the request. (string
+# value)
+openid_mode = checkid_setup
+
+# Protocol version. Value identifying the OpenID protocol version
+# being used. This value should be "http://specs.openid.net/auth/2.0".
+# (string value)
+openid_ns = http://specs.openid.net/auth/2.0
+
+# Return endpoint in Refstack's API. Value indicating the endpoint
+# where the user should be returned to after signing in. Openstack Id
+# Idp only supports HTTPS address types. (string value)
+openid_return_to = v1/auth/signin_return
+
+# Claimed identifier. This value must be set to
+# "http://specs.openid.net/auth/2.0/identifier_select". or to user
+# claimed identity (user local identifier or user owned identity [ex:
+# custom html hosted on a owned domain set to html discover]). (string
+# value)
+openid_claimed_id = http://specs.openid.net/auth/2.0/identifier_select
+
+# Alternate identifier. This value must be set to
+# http://specs.openid.net/auth/2.0/identifier_select. (string value)
+openid_identity = http://specs.openid.net/auth/2.0/identifier_select
+
+# Indicates request for user attribute information. This value must be
+# set to "http://openid.net/extensions/sreg/1.1". (string value)
+openid_ns_sreg = http://openid.net/extensions/sreg/1.1
+
+# Comma-separated list of field names which, if absent from the
+# response, will prevent the Consumer from completing the registration
+# without End User interation. The field names are those that are
+# specified in the Response Format, with the "openid.sreg." prefix
+# removed. Valid values include: "country", "email", "firstname",
+# "language", "lastname" (string value)
+openid_sreg_required = email,fullname
+
+
+[jira]
+
+JIRA_USER_NAME = test
+JIRA_USER_PASSWORD = test
+
+JIRA_URL = https://jira.opnfv.org
+OAUTH_CONSUMER_KEY = oauth-opnfv-test-results-api-consumer
+OAUTH_CONSUMER_SECRET =
+
+OAUTH_REQUEST_TOKEN_URL = https://jira.opnfv.org/plugins/servlet/oauth/request-token
+OAUTH_ACCESS_TOKEN_URL = https://jira.opnfv.org/plugins/servlet/oauth/access-token
+OAUTH_AUTHORIZE_URL = https://jira.opnfv.org/plugins/servlet/oauth/authorize
+
+OAUTH_CALLBACK_URL = http://localhost:9999/api/v1/auth/signin_return_jira
+
+
+[lfid]
+
+url = https://identity.linuxfoundation.org/cas/
+return_url = http://localhost:9999/api/v1/auth/signin_return_cas