@bitcall/webrtc-sip-gateway 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,25 @@
1
+ # Generated by bitcall-gateway init
2
+ GATEWAY_VERSION=__GATEWAY_VERSION__
3
+ BITCALL_GATEWAY_IMAGE=__BITCALL_GATEWAY_IMAGE__
4
+ DOMAIN=__DOMAIN__
5
+ PUBLIC_IP=__PUBLIC_IP__
6
+ DEPLOY_MODE=__DEPLOY_MODE__
7
+ SIP_PROVIDER_URI=__SIP_PROVIDER_URI__
8
+ SIP_UPSTREAM_TRANSPORT=__SIP_UPSTREAM_TRANSPORT__
9
+ SIP_UPSTREAM_PORT=__SIP_UPSTREAM_PORT__
10
+ ALLOWED_SIP_DOMAINS=__ALLOWED_SIP_DOMAINS__
11
+ SIP_TRUSTED_IPS=__SIP_TRUSTED_IPS__
12
+ TURN_MODE=__TURN_MODE__
13
+ TURN_SECRET=__TURN_SECRET__
14
+ TURN_TTL=__TURN_TTL__
15
+ TURN_API_TOKEN=__TURN_API_TOKEN__
16
+ WEBPHONE_ORIGIN=__WEBPHONE_ORIGIN__
17
+ WEBPHONE_ORIGIN_PATTERN=__WEBPHONE_ORIGIN_PATTERN__
18
+ TLS_MODE=__TLS_MODE__
19
+ TLS_CERT=__TLS_CERT__
20
+ TLS_KEY=__TLS_KEY__
21
+ ACME_EMAIL=__ACME_EMAIL__
22
+ ACME_LISTEN_PORT=__ACME_LISTEN_PORT__
23
+ WSS_LISTEN_PORT=__WSS_LISTEN_PORT__
24
+ INTERNAL_WSS_PORT=__INTERNAL_WSS_PORT__
25
+ INTERNAL_WS_PORT=__INTERNAL_WS_PORT__
@@ -0,0 +1,28 @@
1
+ services:
2
+ gateway:
3
+ image: ${BITCALL_GATEWAY_IMAGE}
4
+ container_name: bitcall-gateway
5
+ network_mode: host
6
+ read_only: true
7
+ tmpfs:
8
+ - /tmp
9
+ - /run
10
+ security_opt:
11
+ - no-new-privileges:true
12
+ env_file: .env
13
+ volumes:
14
+ - ${TLS_CERT}:/etc/ssl/cert.pem:ro
15
+ - ${TLS_KEY}:/etc/ssl/key.pem:ro
16
+ - ./acme-webroot:/var/www/acme:ro
17
+ restart: always
18
+ healthcheck:
19
+ test: ["CMD-SHELL", "curl -sf http://127.0.0.1:${ACME_LISTEN_PORT:-80}/.well-known/acme-challenge/healthcheck | grep -q ok && ss -tlnp | grep -q ':${WSS_LISTEN_PORT:-443}'"]
20
+ interval: 30s
21
+ timeout: 5s
22
+ retries: 3
23
+ start_period: 15s
24
+ logging:
25
+ driver: json-file
26
+ options:
27
+ max-size: "10m"
28
+ max-file: "3"