You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+80-3Lines changed: 80 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,20 +9,97 @@ Get the latest version of the `docker-compose.yaml` file:
9
9
```yaml
10
10
---
11
11
services:
12
-
myservice:
13
-
container_name: myservice
12
+
signal-api:
13
+
image: bbernhard/signal-cli-rest-api
14
+
container_name: signal-api
15
+
environment:
16
+
- MODE=normal
17
+
volumes:
18
+
- ./data:/home/.local/share/signal-cli
19
+
networks:
20
+
backend:
21
+
aliases:
22
+
- signal-api
23
+
restart: unless-stopped
24
+
25
+
secured-signal:
26
+
image: ghcr.io/codeshelldev/secured-signal-api
27
+
container_name: secured-signal
28
+
networks:
29
+
backend:
30
+
aliases:
31
+
- secured-signal-api
32
+
environment:
33
+
SIGNAL_API_URL: http://signal-api:8080
34
+
DEFAULT_RECIPIENTS: '[ "000", "001", "002" ]'
35
+
SENDER: 123456789
36
+
ports:
37
+
- "8880:8880"
38
+
restart: unless-stopped
39
+
40
+
networks:
41
+
backend:
42
+
```
43
+
44
+
### Reverse proxy
45
+
46
+
Take a look at traefik implementation:
47
+
48
+
```yaml
49
+
{ { file.example/traefik.docker-compose.yaml } }
14
50
```
15
51
52
+
## Setup
53
+
54
+
Before you can send messages via `secured-signal-api` you must first setup [`signal-api`](https://github.com/bbernhard/signal-cli-rest-api/blob/master/doc/EXAMPLES.md),
55
+
56
+
to send messages you have to either:
57
+
58
+
- register a Signal Account
59
+
60
+
OR
61
+
62
+
- link Signal Api to a already registered Signal Device
Because `secured-signal-api` is just a secure proxy you can use all of the [Signal REST Api](https://github.com/bbernhard/signal-cli-rest-api/blob/master/doc/EXAMPLES.md) endpoints with an Exception of:
75
+
76
+
```python
77
+
DEFAULT_BLOCKED_ENDPOINTS= [
78
+
"/v1/about",
79
+
"/v1/configuration",
80
+
"/v1/devices",
81
+
"/v1/register",
82
+
"/v1/unregister",
83
+
"/v1/qrcodelink",
84
+
"/v1/accounts",
85
+
"/v1/contacts"
86
+
]
87
+
```
88
+
89
+
Which are blocked by default to increase Security, but you these can be modified by setting the `BLOCKED_ENDPOINTS` environment variable as a valid json array
0 commit comments