forked from camunda-community-hub/zeebe-client-node-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
134 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules | ||
dist | ||
docs | ||
.DS_Store | ||
.DS_Store | ||
.vscode |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { ZBClient } from '../src' | ||
|
||
// Add an entry to your /etc/hosts to resolve zeebe.docker.localhost to 127.0.0.1 | ||
|
||
const z = new ZBClient('zeebe.docker.localhost:80', { | ||
basicAuth: { | ||
password: 'test', | ||
username: 'test', | ||
}, | ||
}) | ||
|
||
async function main() { | ||
// tslint:disable-next-line: no-console | ||
console.log(await z.topology()) | ||
z.createWorker(null, 't', (_, complete) => { | ||
complete.success() | ||
}) | ||
} | ||
|
||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,31 @@ | ||
version: "2" | ||
# Basic Auth setup | ||
|
||
version: "3" | ||
|
||
services: | ||
nginx-proxy: | ||
image: jwilder/nginx-proxy:alpine | ||
container_name: nginx-proxy | ||
reverse-proxy: | ||
# The official v2.0 Traefik docker image | ||
image: traefik:v2.0 | ||
# Enables the web UI and tells Traefik to listen to docker | ||
command: --api.insecure=true --providers.docker | ||
ports: | ||
- "80:26500" | ||
# The HTTP port | ||
- "80:80" | ||
# The Web UI (enabled by --api.insecure=true) | ||
- "8080:8080" | ||
volumes: | ||
- /var/run/docker.sock:/tmp/docker.sock:ro | ||
# So that Traefik can listen to the Docker events | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
|
||
zeebe: | ||
image: camunda/zeebe:0.22.0-alpha1 | ||
environment: | ||
- VIRTUAL_HOST=whoami.local | ||
- VIRTUAL_PORT=26500 | ||
labels: | ||
# Resolvable name, for routing the incoming connections | ||
- "traefik.http.routers.zeebe.rule=Host(`zeebe.docker.localhost`)" | ||
## Unencrypted HTTP2 traffic between proxy and Zeebe | ||
- "traefik.http.services.zeebe.loadbalancer.server.scheme=h2c" | ||
# Note: all dollar signs in the hash need to be doubled for escaping. | ||
# To create user:password pair, it's possible to use this command: | ||
# echo $(htpasswd -nb user password) | sed -e s/\\$/\\$\\$/g | ||
- "traefik.http.middlewares.zeebe-auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0" | ||
- "traefik.http.routers.zeebe.middlewares=zeebe-auth" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface BasicAuthConfig { | ||
password: string | ||
username: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters