Commit graph

648 commits

Author SHA1 Message Date
Sergey Stepanov
2247725eb1
Update CD script 2021-08-25 15:58:13 +03:00
Sergey Stepanov
149486396a
Update CD script 2021-08-25 15:44:24 +03:00
Sergey Stepanov
3248ad37f2
Update CD script 2021-08-25 15:40:16 +03:00
Sergey Stepanov
766b9ae6a4
Update CD script 2021-08-25 14:16:56 +03:00
Sergey Stepanov
37d63e875c
Add ssh timeout 2021-08-25 14:15:27 +03:00
Sergey Stepanov
e770f1c77e
Add ssh user option 2021-08-25 14:09:30 +03:00
Sergey Stepanov
a7eb6cf9c3
Use Bash in CD 2021-08-25 14:00:42 +03:00
Sergey Stepanov
f4d249f11b
Use Bash in CD 2021-08-25 13:56:40 +03:00
Sergey Stepanov
c78117125f
Use Bash in CD 2021-08-25 13:50:02 +03:00
Sergey Stepanov
7773133409
Use Bash in CD 2021-08-25 11:03:11 +03:00
Sergey Stepanov
f95bf52074
Update gh deploy script 2021-08-25 10:40:19 +03:00
Sergey Stepanov
1f3e82b1c7
Set +x for deploy-app.sh 2021-08-25 10:37:21 +03:00
sergystepanov
f10dfff582
Update deploy.yml 2021-08-25 10:29:29 +03:00
sergystepanov
3426edb4c1
Add temporary Docker cleaner for cloudretro.io 2021-08-25 10:25:31 +03:00
sergystepanov
fb8ee791df
Update the prod deployment script (#341)
Test new deployment workflow.
2021-08-24 21:54:32 +03:00
sergystepanov
66a13943bc
Upgrade Go version to 1.17 (#345) 2021-08-17 11:41:14 +03:00
Sergey Stepanov
c7b259f63d
Use zone prefix in the autocert whitelist 2021-08-16 23:34:41 +03:00
sergystepanov
e1d420033e
Update dependencies (#344)
go get: upgraded cloud.google.com/go v0.87.0 => v0.91.1
go get: upgraded github.com/go-gl/gl v0.0.0-20210501111010-69f74958bac0 => v0.0.0-20210813123233-e4099ee2221f
go get: upgraded github.com/kkyr/fig v0.2.0 => v0.3.0
go get: upgraded github.com/pion/ice/v2 v2.1.8 => v2.1.12
go get: upgraded github.com/pion/interceptor v0.0.13 => v0.0.15
go get: upgraded github.com/pion/rtp v1.6.5 => v1.7.1
go get: upgraded github.com/pion/srtp/v2 v2.0.2 => v2.0.5
go get: upgraded github.com/pion/webrtc/v3 v3.0.31 => v3.0.32
go get: upgraded github.com/prometheus/common v0.29.0 => v0.30.0
go get: upgraded github.com/prometheus/procfs v0.7.0 => v0.7.2
go get: upgraded golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 => v0.0.0-20210813211128-0a44fdfbc16e
go get: upgraded golang.org/x/mod v0.4.2 => v0.5.0
go get: upgraded golang.org/x/net v0.0.0-20210716203947-853a461950ff => v0.0.0-20210813160813-60bc85c4be6d
go get: upgraded golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914 => v0.0.0-20210810183815-faf39c7919d5
go get: upgraded golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c => v0.0.0-20210816074244-15123e1e1f71
go get: upgraded golang.org/x/text v0.3.6 => v0.3.7
go get: upgraded google.golang.org/api v0.50.0 => v0.54.0
go get: upgraded google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea => v0.0.0-20210816143620-e15ff196659d
2021-08-16 18:30:02 +03:00
Sergey Stepanov
c865e83143
Expose a multi process mutex lock file config 2021-08-16 01:36:07 +03:00
Sergey Stepanov
8246fc6723
Use old ping-address generation logic 2021-08-15 21:25:50 +03:00
Sergey Stepanov
fd3f267c64
Update scripts
Docker cache order.
Install missing xauth for xvfb-run.
2021-08-15 20:29:45 +03:00
Sergey Stepanov
12312edd03
Add missing core downloader call 2021-08-12 22:22:46 +03:00
sergystepanov
d8e3ec8b21
Update version.sh 2021-08-10 21:29:42 +03:00
Sergey Stepanov
b4b199c244
Add public ping address option for worker 2021-08-09 17:54:49 +03:00
sergystepanov
431d215eee
Update server HTTPS configuration (#337)
* Merge HTTP and HTTPS routes builder in coordinator

* Extract HTTP/S routes

* Rename config in coordinator

* Generalize child services

* Extract games library helper function

* Use string address instead of port for HTTP/S

* Use a dedicated port extractor function

* Add missing GA tag templating

* Rename shared server address and port params

* Introduce TLS config parameters

* Simplify HTTP/S server constructors

* Update server auto port roll

* Extract init function in worker

* Reorder return params of address type port fn

* Refactor config handler names

* Update TLS default config params

* Extract HTTP to HTTPS redirect function

* Use httpx in monitoring

* Don't log echo requests

* Remove error return from the abstract server

* Add WSS option to the worker-coordinator connection

* Change default worker config

* Make worker send its internal connection params

* Decouple gamelib from the coordinator

* Expose HTTP/S listener address

* Keep original HTTP/S addresses

* Remove no config handler in worker

* Use HTTP-HTTPS redirection

* Wrap net.Listener into a struct

* Clean http server creation fn

* Redirect to https with a generated address

* Use URL in the redirector

* Use zone address param in worker

* Make use of actual addr and port in the monitoring servers

* Use auto-justified monitoring addresses info

* Add the non-HTTPS worker to HTTPS coordinator connection warning

* Embed TLS struct

* Move connection API struct into cws package
2021-08-09 10:42:06 +03:00
Sergey Stepanov
2657dfbc70
Rename manual production deployment workflow 2021-08-08 18:44:45 +03:00
Sergey Stepanov
4ec18fc34c
Enable manual production deployments 2021-08-08 18:34:16 +03:00
Sergy Stepanov
5199d73caf Show errors when client WS connection fails 2021-07-31 13:05:48 +03:00
Sergy Stepanov
e4e160d9dc Update Makefile 2021-07-31 13:03:18 +03:00
Sergy Stepanov
a3d2549028 Remove old is_mobile init param 2021-07-31 12:33:25 +03:00
sergystepanov
f7790732f5
Use different default monitoring port in worker
Both coordinator and worker use the same port number for the monitoring server which leads to a conflict. This fix resolves that.
2021-07-30 23:20:38 +03:00
sergystepanov
54deb3607d
Remove font-awesome CSS ref from the index page 2021-07-30 22:56:16 +03:00
Sergey Stepanov
03fb03a71a
Rename old app references 2021-07-30 13:30:15 +03:00
Sergey Stepanov
95f65b2b72
Add useless cache for worker's echo response 2021-07-30 12:48:36 +03:00
sergystepanov
d3e16a4a09
Make Google Analytics injection optional (#336)
This allows switching GA client statistics on the client by setting these params in the config.yaml file:
 analytics:
   inject: false/true
   gtag: (your tag)
By default, GA analytics will be disabled.
2021-07-30 12:29:16 +03:00
sergystepanov
ff562503f1
Delete not used font-awesome.css 2021-07-30 12:22:59 +03:00
sergystepanov
3abb1d4818
Use orientation-based video / canvas stretching (#335) 2021-07-28 02:13:03 +03:00
sergystepanov
3079751758
Update dependencies (#331) 2021-07-17 12:23:07 +03:00
Sergey Stepanov
69f18d19e4
Pass version number as gh env when pushing Docker images 2021-07-16 18:32:17 +03:00
Sergey Stepanov
dc151f6a0b
Pass version when pushing Docker images 2021-07-16 18:22:52 +03:00
sergystepanov
30d104ee98
Add version info into the apps (#330)
Both worker and coordinator display version number in the console during startup. Coordinator displays its version number in the top right corner of the index.html page.
2021-07-16 18:13:20 +03:00
sergystepanov
cbabe69f30
Track connected user count of workers. (#328)
If a worker (game) is shared, then without tracking players it's impossible to tell when it becomes available for a new game which leads to emulator share and crashes.
2021-07-05 19:11:12 +03:00
Silver Zhang
35ee35d730
Remove port binding for docker config (#326)
Docker-compose does not support host mode along with the port
binding anymore. Additionally there is no necessity for using
port binding under current configuration since it takes no effect.
2021-07-03 21:20:38 +03:00
sergystepanov
2378288a5b
Fix player select with touch controls (#325) 2021-07-02 13:34:12 +03:00
Sergey Stepanov
875673c661
Remove mingw-w64-x86_64-pkg-config and mingw-w64-x86_64-pkgconf conflict in MSYS2 2021-06-26 22:41:28 +03:00
Sergey Stepanov
867990e62a
(Re)Add MAME (FinalBurn Neo) core record into the default config file 2021-06-26 22:34:13 +03:00
Sergey Stepanov
fffe4813c4
Use OS aware file path concat with ROMs 2021-06-26 22:32:23 +03:00
giongto35
c3c3351feb
Update README.md 2021-06-05 09:46:32 +08:00
giongto35
4935997c82
CD Flow to redeploy after push (#320)
* Add redeploy.sh to redeploy

* Add redeploy to workflow

* Update redeploy script

* Redeploy script

* Test

* run after checkout

* Update path

* checkout ssh

* Update build

* remove unnecesary

* Update placeholder

* Update domain

* Retrigger

* Update docker login

* Update config

* deploy with config

* Update sync config

* Redeploy

* Update redeploy.sh

* Redeploy specific

* redeploy.sh

* redeploy specific.sh

* add more server

* Update redeploy

* Update docker publish

* Redeploy

* Update port

* Update redeploy.sh

* test build

* Remove test with build.yaml

* Clean up

* Clean up
2021-05-28 03:51:25 +08:00
Sergey Stepanov
27e8a792fd
Publish Docker images from the stable/unstable code.
v-tagged push -> v-tagged stable image with stable tag also
master push -> dev tagged image
2021-05-26 22:23:47 +03:00