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
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:
44
-
45
-
```python
46
-
DEFAULT_BLOCKED_ENDPOINTS= [
47
-
"/v1/about",
48
-
"/v1/configuration",
49
-
"/v1/devices",
50
-
"/v1/register",
51
-
"/v1/unregister",
52
-
"/v1/qrcodelink",
53
-
"/v1/accounts",
54
-
"/v1/contacts"
55
-
]
64
+
### Advanced
65
+
66
+
#### Placeholders
67
+
68
+
If you are not comfortable with hardcoding your Number and/or Recipients in you may use **Placeholders** in your request like:
69
+
70
+
`{{ .NUMBER }}` or `{{ .RECIPIENTS }}`
71
+
72
+
These _Placeholders_ can be used in the Query or the Body of a Request like so:
73
+
74
+
**Body**
75
+
76
+
```json
77
+
{
78
+
"number": "{{ .NUMBER }}",
79
+
"recipients": "{{ .RECIPIENTS }}"
80
+
}
81
+
```
82
+
83
+
**Query**
84
+
85
+
```
86
+
http://.../?@number={{.NUMBER}}
87
+
```
88
+
89
+
**Path**
90
+
91
+
```
92
+
http://signal-api:8880/v1/receive/{{.NUMBER}}
93
+
```
94
+
95
+
#### KeyValue Pair Injection
96
+
97
+
In some cases you may not be able to access / modify the Request Body, if that is the case specify needed values in the Requests Query:
98
+
99
+
```
100
+
http://signal-api:8880/?@key=value
56
101
```
57
102
58
-
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
103
+
**Format**
104
+
In order to differentiate Injection Queries and _regular_ Queries
105
+
you have to add `@` in front of any KeyValue Pair assignment
106
+
107
+
### Environment Variables
108
+
109
+
#### API Token
110
+
111
+
> [!IMPORTANT]
112
+
> It is highly recommended to set this Environment Variable to a long secure string
113
+
114
+
_What if I just don't?_
115
+
116
+
Well Secured Signal API will still work, but important Security Features won't be available
117
+
like Blocked Endpoints and anyone with access to your Docker Container will be able to send Messages in your Name
118
+
119
+
> [!NOTE]
120
+
> Blocked Endpoints can be reactivated by manually setting them in the environment
121
+
122
+
#### Blocked Endpoints
123
+
124
+
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:
125
+
126
+
-**/v1/about**
127
+
128
+
-**/v1/configuration**
129
+
130
+
-**/v1/devices**
131
+
132
+
-**/v1/register**
133
+
134
+
-**/v1/unregister**
135
+
136
+
-**/v1/qrcodelink**
137
+
138
+
-**/v1/accounts**
139
+
140
+
-**/v1/contacts**
141
+
142
+
These Endpoints are blocked by default to Security Risks, but can be modified by setting `BLOCKED_ENDPOINTS` in the environment variable to a valid json array string
0 commit comments