This repository has been archived by the owner on Oct 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Successful request get! Now to implement other methods.
- Loading branch information
Jonathan Ling
committed
Sep 28, 2018
1 parent
3d554e6
commit 8a2d2d3
Showing
3 changed files
with
105 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,39 @@ | ||
# NOTE: Uppercase values are expected for the non customizable portions of the environment properties. | ||
# You can replace 'SOME_SERVICE' with whatever you like (e.g. BEANS) and then go to https://<server-url>/BEANS to kick off the request process. | ||
|
||
# Key defines a route to send a request off somewhere else. Value defines the values to pull in from ENV and send with the request. | ||
SOME_SERVICE=SOME_SERVICE_CLIENT_ID,SOME_SERVICE_API_TOKEN | ||
|
||
# URL to send the proxied request to. | ||
SOME_SERVICE_URL='https://api.someservice.tv/users' | ||
|
||
# The root property you want the proxy to return from a successful call. | ||
SOME_SERVICE_ROOT_PROP=data | ||
|
||
# Key you want to use in your request. | ||
SOME_SERVICE_CLIENT_ID_KEY=Client-ID | ||
|
||
# The value assigned to the previous key variable. | ||
SOME_SERVICE_CLIENT_ID_VALUE=somevalue | ||
|
||
# The type of property: possible values are isHeader, isRequestProp, isQueryStr. Note that this is required. | ||
# isHeader = header property | ||
# isRequestProp = json body property | ||
# isQueryStr = query string property | ||
SOME_SERVICE_CLIENT_ID_OPTS=isHeader | ||
|
||
SOME_SERVICE_API_TOKEN_KEY=jwt | ||
SOME_SERVICE_API_TOKEN_VALUE=someothervalue | ||
SOME_SERVICE_API_TOKEN_OPTS=isRequestProp | ||
|
||
# HTTP port to start the server on | ||
PORT=3000 | ||
|
||
# Cookie secret to sign cookies from the server. | ||
COOKIE_SECRET=VEhJUyBJUyBBIFNFQ1JFVCBZT1UgQkFTVEFSRC4= | ||
|
||
# CORS toggle switch to turn CORS on or off. Delete or comment to turn off. | ||
CORS_ENABLED=true | ||
|
||
# CORS whitelist for your domains. This is maybe how CORS works... | ||
WHITELIST="https://codepen.io/,https://myblog.com/,https://myghpage.github.io/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters