Skip to content

Commit

Permalink
Fix passing proxy to createSession (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
anandbagmar authored Oct 31, 2023
1 parent 9421ab4 commit 097f725
Show file tree
Hide file tree
Showing 4 changed files with 19,974 additions and 3,637 deletions.
20 changes: 19 additions & 1 deletion docs/server-args.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,22 @@ These arguments are set when you launch the Appium server with device-farm plugi
| args | Either a string or an array of emulator [command line arguments](https://developer.android.com/studio/run/emulator-commandline). If arguments contain the `-wipe-data` one then the emulator is going to be killed on automated session startup in order to wipe its data. |
| env | Mapping of emulator [environment variables](https://developer.android.com/studio/command-line/variables). |

Above cli arguments can also be set from config.json file Refer [here](https://github.com/AppiumTestDistribution/appium-device-farm/blob/main/sample-config.json)
Above cli arguments can also be set from config.json file Refer [here](https://github.com/AppiumTestDistribution/appium-device-farm/blob/main/sample-config.json)

### Proxy configuration for axios
appium-device-farm will use the proxy provided and pass that to HttpAgent and HttpsAgent.

The proxy object definition will be as per the axios documentation available here - https://axios-http.com/docs/req_config

Example:
```
proxy: {
protocol: 'https',
host: '127.0.0.1',
port: 9000,
auth: {
username: 'mikeymike',
password: 'rapunz3l'
}
},
```
Loading

0 comments on commit 097f725

Please sign in to comment.