Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
Keel - LDH Middleware
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Noe Nieto
Keel - LDH Middleware
Commits
b8e33522
Commit
b8e33522
authored
Apr 29, 2019
by
Noe Nieto
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add timeout parameter for WooCommenrce API
parent
c4a4fff7
Pipeline
#8496
canceled with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
config.ini
config_sample/ldh_middleware/config.ini
+1
-0
settings.py
middleware/settings.py
+1
-0
models.py
purist/models.py
+1
-0
No files found.
config_sample/ldh_middleware/config.ini
View file @
b8e33522
...
...
@@ -45,6 +45,7 @@ WOO_CART_5000 = True
WOO_CART_5999
=
True
WOO_CART_BILLING_PATH
=
add_to_cart
WOO_CART_THANKS_PATH
=
get-started
WOO_API_TIMEOUT
=
30
OVPN_HOSTNAME
=
ssh.example.com
OVPN_PORT
=
22
...
...
middleware/settings.py
View file @
b8e33522
...
...
@@ -171,6 +171,7 @@ WOO_VERSION = config("WOO_VERSION")
WOO_QUERY_STRING_AUTH
=
config
(
"WOO_QUERY_STRING_AUTH"
,
cast
=
bool
)
# required for OAuth over HTTPS
WOO_CONSUMER_KEY
=
secret_config
(
"WOO_CONSUMER_KEY"
)
WOO_CONSUMER_SECRET
=
secret_config
(
"WOO_CONSUMER_SECRET"
)
WOO_API_TIMEOUT
=
config
(
"WOO_API_TIMEOUT"
,
5
)
#
# WOOCOMMERCE CART
...
...
purist/models.py
View file @
b8e33522
...
...
@@ -39,6 +39,7 @@ def get_woo_connection():
wp_api
=
settings
.
WOO_WP_API
,
version
=
settings
.
WOO_VERSION
,
query_string_auth
=
settings
.
WOO_QUERY_STRING_AUTH
,
timeout
=
settings
.
WOO_API_TIMEOUT
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment