Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions fiftyone_pipeline_cloudrequestengine/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ This package uses the `engines` class created by the `fiftyone-pipeline-engines`
* A `Cloud Request Engine` which calls the 51Degrees cloud service to fetch properties and metadata about them based on a provided resource key. Get a resource key at https://configure.51degrees.com/?utm_source=github&utm_medium=readme&utm_campaign=pipeline-python&utm_content=fiftyone_pipeline_cloudrequestengine-readme.md&utm_term=this-package-fiftyone_pipeline_cloudrequestengine
* A `Cloud Engine` template which reads data from the Cloud Request Engine.

## Pointing the engine at another host

The engine calls `https://cloud.51degrees.com/api/v4/` unless told
otherwise. Set the `FOD_CLOUD_API_URL` environment variable, or pass
`cloud_endpoint` in the engine settings, to the API base of another
host including the `/api/v4/` segment. A host other than
cloud.51degrees.com would be used to (a) use an on premise web server,
or (b) use a privately hosted version of the 51Degrees cloud for
performance reasons. This is the private hosting option of the cloud
service, and both run the same service, so code written against one
works unchanged against the other.

It is used by the cloud versions of the following 51Degrees engines:

- [**fiftyone_devicedetection**](https://pypi.org/project/fiftyone-devicedetection/) - Get details about the devices accessing your web page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ def __init__(self, settings = {}):
self.resource_key = settings["resource_key"]


# The endpoint is the cloud_endpoint setting, then the
# FOD_CLOUD_API_URL environment variable, then
# cloud.51degrees.com. A host other than cloud.51degrees.com
# would be used to (a) use an on premise web server, or (b) use
# a privately hosted version of the 51Degrees cloud for
# performance reasons. That is the private hosting option of
# the cloud service, and both run the same service, so callers
# work unchanged against either.
if "cloud_endpoint" in settings:
self.baseURL = settings["cloud_endpoint"]
else:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading