Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle appium urls location via general nginx #80

Closed
vdelendik opened this issue Jan 19, 2021 · 2 comments
Closed

handle appium urls location via general nginx #80

vdelendik opened this issue Jan 19, 2021 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@vdelendik
Copy link
Collaborator

Each device service register as appium url:
http://${publicIp}/stf/appium/${host}/${port}/wd/hub

So using /stf general NGiNX will redirect to stf-proxy service.
stf-proxy service should parse host and port and proxy pass to appium using private network connection

@vdelendik vdelendik added the enhancement New feature or request label Jan 19, 2021
@vdelendik vdelendik added this to the 1.3 milestone Jan 19, 2021
@vdelendik
Copy link
Collaborator Author

Fixed. Such location match was added onto the stf-proxy nginx:

    # Handle appium-providers
    location ~ "^/appium/(?<appiumprovider>([^/]+))/(?<port>[0-9]+)/$" {
      proxy_pass http://$appiumprovider:$port/;
    }

To test setup zebrunner from develop branch, open any device (Both Android and iOS!!!).
Copy from Automation tab link to appium: http://${publicIp}/stf/appium/${host}/${port}/wd/hub

Open http://${publicIp}/stf/appium/${host}/${port}/wd/hub/status in browser
-> you should see status response from Appium with appium version

@dhreben
Copy link

dhreben commented Jan 21, 2021

Verified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants