Commit Graph

33 Commits

Author SHA1 Message Date
Ivan Mironov
4db9120a1c Add more CLI options for stf local to support reverse proxies (#714)
I use `stf` for a very small installation with just one user and few
devices. `stf local` provides enough functionality and is easy to run:
just one command without the need to configure all internal services
separately. The only missing feature is the ability to provide access
securely over the internet.

I want to use nginx reverse proxy with https and client certificate
authorization, but currently this does not play well with modern
browsers as they refuse to connect to insecure ws:// from secure
https:// context.

This patch just adds the ability to configure various URL patterns to
match the externally accessible address of the installation.

Signed-off-by: Ivan Mironov <mironov.ivan@gmail.com>
2023-09-30 01:17:33 +02:00
Denis Barbaron
d9e59446f3 add frame rate management (#558)
Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2022-08-03 13:48:51 +02:00
Denis Barbaron
ce5a0009c9 fix bug on screen grabber management (#554)
Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2022-07-29 11:56:13 +02:00
Denis Barbaron
eacc7bbca7 use the fork of the please-update-dependencies package (#522)
* use the fork of the please-update-dependencies package

Signed-off-by: Denis Barbaron <denis.barbaron@orange.com>

* use @devicefarmer/please-update-dependencies package

Signed-off-by: Denis Barbaron <denis.barbaron@orange.com>

Co-authored-by: Karol Wrótniak <karol.wrotniak@droidsonroids.pl>
2022-05-10 16:34:30 +02:00
Denis Barbaron
6b2f434acb upgrade node to latest version v17.9.0 (#500)
* upgrade node to latest version v17.9.0

Signed-off-by: Denis Barbaron <denis.barbaron@orange.com>

* remove useless comments in karma configuration file

Signed-off-by: Denis Barbaron <denis.barbaron@orange.com>
2022-04-12 17:03:43 +02:00
Crepieux Pierre
4a8787891d Fix code style
Signed-off-by: Crepieux Pierre <pierre.crepieux@orange.com>
2021-06-01 09:46:35 +02:00
Crepieux Pierre
bb1c20d1f7 Introduce support for new VM based minicap to support Android 12
This commit introduce a new option to use a new minicap
implementation by specifying --screen-grabber or the env
variable SCREEN_GRABBER. The current native minicap is the default
and is refered as 'minicap-bin'. The new minicap which is packaged
in an apk is usable with 'minicap-apk' and will be used as a
fallback.
At the moment, this apk is expected to be included in
minicap-prebuilt node package at this location
minicap-prebuilt/prebuilt/noarch/minicap.apk.

STFService.apk has also been updated to take into account Android 12

Signed-off-by: Crepieux Pierre <pierre.crepieux@orange.com>
2021-05-31 18:00:28 +02:00
nghiaviminh
841b092d25 Add .aab installation support (#103)
* Add .aab installation support

Signed-off-by: nghia.viminh <nghia.viminh@gameloft.com>
2020-09-28 11:29:58 +02:00
Karol Wrótniak
88bb59c271 Merge pull request #1056 from denis99999/group-feature
Addition of a powerful system for device booking & partitioning
2020-02-08 01:30:37 +01:00
Rick van Hattem
d371e733d2 Fix for stdout race condition in stf doctor
Sometimes the process exits before the data is read from stdout. The result is that the `call` method exits before it has it's output.

Example bug: https://github.com/openstf/stf/issues/1091
2019-11-06 12:26:31 +01:00
Denis barbaron
7f5dc4c152 add groups feature 2019-06-12 10:29:07 +02:00
Simo Kinnunen
762b07bc45 Update index.js
Temporarily turn OAuth 2.0 state tokens off due to #931.
2018-08-11 16:33:32 +09:00
Simo Kinnunen
97633327bb Support OAuth2 state tokens. 2018-07-14 11:06:15 +08:00
Simo Kinnunen
3032980c78 Merge pull request #778 from 0rzech/saml-callback-url-option
SAML callback URL option
2018-03-23 22:59:37 +09:00
Simo Kinnunen
6f42b9677b Merge pull request #768 from 0rzech/screen-reset-option
Screen reset option
2018-03-23 22:55:17 +09:00
Simo Kinnunen
4ed5aaacdb Newest version of formidable changes the default maximum file size to 2MB, which is way too low for anything. Make the limit configurable and set to 1GB by default. 2018-03-14 13:45:28 +09:00
Piotr Orzechowski
31f53dc220 Add option to control SAML callback 2018-03-07 11:17:59 +01:00
Piotr Orzechowski
e8db600878 Add option to control screen resetting on device release 2018-03-07 11:15:15 +01:00
Simo Kinnunen
c55b08fbc2 Merge branch 'ldap_search_filter' of https://github.com/thasegaw/stf into thasegaw-ldap_search_filter 2017-10-12 22:28:16 +09:00
Simo Kinnunen
2351025f6f Allow master volume to be always muted. 2017-09-22 17:08:34 +09:00
Takashi Hasegawa
b8388c75b3 add ldap-search-filter option 2017-06-14 13:45:12 +09:00
Takashi Hasegawa
9e8a8e4b97 support search filter 2017-06-14 12:51:31 +09:00
thinkhy
ddf9672dc1 Update index.js 2017-06-04 19:37:53 +08:00
lanxi
c14ee446dc Update yargs 2017-05-04 17:01:44 +08:00
Simo Kinnunen
2b836f6382 Make sure that check actually catches and handles errors, even if synchronous. 2017-04-29 12:55:46 +09:00
Simo Kinnunen
6bf300e29d Require zmq in directly the test so that it being broken (due to e.g. missing bindings) won't prevent other tests from running. 2017-04-29 12:54:18 +09:00
Simo Kinnunen
6f1025e8ff Refactor doctor to be more resilient to unexpected errors, which made our life even harder especially on Ubuntu where the RethinkDB version contains more things in it. 2017-04-23 01:17:44 +09:00
Simo Kinnunen
54263114cf Fix storage-s3/temp being in wrong directories. Everything still worked since they had the right content for yargs to do its thing. Fixes #555. 2017-03-08 12:59:45 +09:00
Karol Wrótniak
8b9ff7e580 Email domain restriction added for OAuth2 authorization. 2017-02-14 01:37:46 +01:00
Simo Kinnunen
083a2a1f92 Fix incorrect migrate file path in stf local. Fixes #535 and #509. 2017-02-09 17:16:10 +09:00
Simo Kinnunen
586dd6a4aa Setting parse-numbers: false caused number options to become strings as well. Since we seem to have little control over positional arguments, let's make it an option instead. 2017-01-27 17:26:18 +09:00
Simo Kinnunen
5e9aa427e9 The screen websocket now sends ping messages every now and then, so that it won't get caught by nginx's proxy_read_timeout if the screen is off or not moving. Previously, nginx may have decided to kill the connection after a period of no activity. 2017-01-25 17:46:23 +09:00
Simo Kinnunen
cc736ba0ac Ported CLI from commander to yargs because yargs suits our large CLI better and is easier to develop with. Split commands into separate files since the file was getting annoyingly long. 2016-12-22 05:32:03 +09:00