29 Commits

Author SHA1 Message Date
27f379aeb2 Merge pull request #18 from litruv/dependabot/npm_and_yarn/follow-redirects-1.15.6
Bump follow-redirects from 1.15.4 to 1.15.6
2024-08-14 10:03:29 +10:00
dependabot[bot]
853253f9ab Bump follow-redirects from 1.15.4 to 1.15.6
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-13 23:55:56 +00:00
7edfa0405c Merge pull request #12 from litruv/dependabot/npm_and_yarn/ws-8.16.0
Bump ws from 8.14.2 to 8.16.0
2024-08-14 09:55:32 +10:00
05097e7ea3 Merge branch 'master' into dependabot/npm_and_yarn/ws-8.16.0 2024-08-14 09:55:24 +10:00
0900ddb2d5 Merge pull request #14 from litruv/dependabot/npm_and_yarn/follow-redirects-1.15.4
Bump follow-redirects from 1.15.2 to 1.15.4
2024-08-14 09:54:57 +10:00
d261957ff3 Merge branch 'master' into dependabot/npm_and_yarn/follow-redirects-1.15.4 2024-08-14 09:54:44 +10:00
393450b9d8 Merge pull request #16 from litruv/dependabot/npm_and_yarn/axios-1.7.4
Bump axios from 1.6.7 to 1.7.4
2024-08-14 09:54:11 +10:00
2239172cd5 Merge pull request #17 from litruv/dependabot/npm_and_yarn/ws-8.17.1
Bump ws from 8.14.2 to 8.17.1
2024-08-14 09:53:46 +10:00
c20fb5ed24 Merge branch 'master' into dependabot/npm_and_yarn/follow-redirects-1.15.4 2024-08-14 09:53:22 +10:00
dependabot[bot]
61cf3b98a4 Bump ws from 8.14.2 to 8.17.1
Bumps [ws](https://github.com/websockets/ws) from 8.14.2 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.14.2...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-13 23:53:20 +00:00
dependabot[bot]
d2b7382a94 Bump axios from 1.6.7 to 1.7.4
Bumps [axios](https://github.com/axios/axios) from 1.6.7 to 1.7.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.7...v1.7.4)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-13 23:53:19 +00:00
5ead876fb5 Merge pull request #15 from litruv/dependabot/npm_and_yarn/axios-1.6.7
Bump axios from 1.6.1 to 1.6.7
2024-08-14 09:52:27 +10:00
dependabot[bot]
40aa2a436e Bump axios from 1.6.1 to 1.6.7
Bumps [axios](https://github.com/axios/axios) from 1.6.1 to 1.6.7.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.1...v1.6.7)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-29 13:54:59 +00:00
dependabot[bot]
3e38e242a1 Bump follow-redirects from 1.15.2 to 1.15.4
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-10 18:44:33 +00:00
dependabot[bot]
aee1aa9c6f Bump ws from 8.14.2 to 8.16.0
Bumps [ws](https://github.com/websockets/ws) from 8.14.2 to 8.16.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.14.2...8.16.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-01 13:05:55 +00:00
d310600649 Merge pull request #4 from litruv/dependabot/npm_and_yarn/ws-8.14.2
Bump ws from 8.13.0 to 8.14.2
2023-11-16 07:18:22 +11:00
d61f834168 Merge pull request #7 from litruv/dependabot/npm_and_yarn/axios-1.6.1
Bump axios from 1.4.0 to 1.6.1
2023-11-16 07:18:11 +11:00
dependabot[bot]
1080aa88c8 Bump axios from 1.4.0 to 1.6.1
Bumps [axios](https://github.com/axios/axios) from 1.4.0 to 1.6.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.4.0...v1.6.1)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-13 14:01:14 +00:00
dependabot[bot]
db86fc3e92 Bump ws from 8.13.0 to 8.14.2
Bumps [ws](https://github.com/websockets/ws) from 8.13.0 to 8.14.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.13.0...8.14.2)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 13:06:54 +00:00
ee18de5916 Update docker-push.yml 2023-06-12 15:35:57 +10:00
07ca4c8f70 Update docker-push.yml 2023-06-12 15:32:03 +10:00
28b1a76ae8 Update docker-push.yml 2023-06-12 15:26:08 +10:00
bbca283b5a Update docker-push.yml 2023-06-12 15:06:06 +10:00
3ae523341a Update docker-push.yml 2023-06-12 15:04:47 +10:00
bcf9301626 Update docker-push.yml 2023-06-12 15:02:27 +10:00
88bcefdc5a Update docker-push.yml, support gh 2023-06-12 15:00:27 +10:00
ece2679625 Update dependabot.yml 2023-06-12 14:01:30 +10:00
db6f384d1d Create dependabot.yml 2023-06-12 12:34:58 +10:00
be2cc3dfc2 more missed things in the readme, reffing old name 2023-06-11 18:07:15 +00:00
4 changed files with 51 additions and 20 deletions

12
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"

View File

@@ -3,6 +3,11 @@ name: Docker
on:
release:
types: [created]
workflow_dispatch:
inputs:
image_tag:
description: 'Enter the image tag'
required: true
jobs:
build:
@@ -11,21 +16,35 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into Docker registry
- name: Log into Docker Hub
uses: docker/login-action@v1
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log into GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up environment variables
id: env
run: |
echo "IMAGE_TAG=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
echo "IMAGE_TAG=${{ github.event.release.tag_name || inputs.image_tag }}" >> $GITHUB_ENV
- name: Build and push Docker image
- name: Build and push Docker image to Docker Hub
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: docker.io/litruv/api-websocket-bridge:${{ env.IMAGE_TAG }}
- name: Build and push Docker image to GitHub Container Registry
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/${{ github.actor }}/api-websocket-bridge:${{ env.IMAGE_TAG }}

View File

@@ -16,7 +16,7 @@ To run the API WebSocket Bridge in a Docker container, follow these steps:
2. Navigate to the project directory.
```bash
cd websocket-driver
cd api-websocket-bridge
```
3. Configure the API WebSocket Bridge by editing the `config.json` file located in the `config` directory. Refer to the 'Configuration' section below for details on how to customize the configuration based on your requirements and the API you are working with.
@@ -24,17 +24,17 @@ cd websocket-driver
4. Build the Docker image.
```bash
docker build -t websocket-driver .
docker build -t api-websocket-bridge .
```
5. Run the Docker container, exposing the necessary port and providing the required volume mounts.
```bash
docker run -d -p 8080:8080 --name websocket-container \
docker run -d -p 8080:8080 --name api-websocket-bridge \
-v /path/to/cert/fullchain.pem:/app/cert/fullchain.pem \
-v /path/to/cert/privkey.pem:/app/cert/privkey.pem \
-v /path/to/config:/app/config \
websocket-driver
api-websocket-bridge
```
Make sure to replace `/path/to/cert` with the path to your SSL certificate and key files, and `/path/to/config` with the path to your `config.json` file.
@@ -42,7 +42,7 @@ Make sure to replace `/path/to/cert` with the path to your SSL certificate and k
## Configuration
The WebSocketDriver application relies on a configuration file (`config.json`) to specify various settings. Below is an example configuration that corresponds to the example response from Salty Bet's API:
The API WebSocket Bridge application relies on a configuration file (`config.json`) to specify various settings. Below is an example configuration that corresponds to the example response from Salty Bet's API:
```json
{

24
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "api-websocket-bridge",
"version": "1.0.1",
"version": "1.0.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "api-websocket-bridge",
"version": "1.0.1",
"version": "1.0.5",
"license": "Apache 2.0",
"dependencies": {
"axios": "^1.4.0",
@@ -20,11 +20,11 @@
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"node_modules/axios": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz",
"integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==",
"version": "1.7.4",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz",
"integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==",
"dependencies": {
"follow-redirects": "^1.15.0",
"follow-redirects": "^1.15.6",
"form-data": "^4.0.0",
"proxy-from-env": "^1.1.0"
}
@@ -57,9 +57,9 @@
}
},
"node_modules/follow-redirects": {
"version": "1.15.2",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
"version": "1.15.6",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
"integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==",
"funding": [
{
"type": "individual",
@@ -113,9 +113,9 @@
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
},
"node_modules/ws": {
"version": "8.13.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
"integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
"version": "8.16.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz",
"integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==",
"engines": {
"node": ">=10.0.0"
},