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
In some cases you may not be able to access / modify the Request Body, in that case specify needed values in the Request Query:
182
182
183
-
```
184
-
http://sec-signal-api:8880/?@key=value
185
-
```
183
+
Supported types include **strings**, **ints** and **arrays**
184
+
185
+
`http://sec-signal-api:8880/?@key=value`
186
+
187
+
| type | example |
188
+
| :--------- | :------ |
189
+
| string | abc |
190
+
| int | 123 |
191
+
| array | [1,2,3] |
192
+
| array(int) | 1,2,3 |
193
+
| array(str) | a,b,c |
186
194
187
195
##### Format
188
196
@@ -191,38 +199,42 @@ you have to add `@` in front of any KeyValue Pair assignment.
191
199
192
200
### Environment Variables
193
201
194
-
#### API Token
202
+
#### API Token/s
203
+
204
+
Both `API_TOKEN` and `API_TOKENS` support multiple Tokens seperated by **,**.
205
+
During Authentikcation Secured Signal API will try to match the given Token against the list of Tokens inside of these Variables.
206
+
207
+
```yaml
208
+
environment:
209
+
API_TOKEN: "token1, token2, token3"
210
+
API_TOKENS: "token1, token2, token3"
211
+
```
195
212
196
213
> [!IMPORTANT]
197
214
> It is highly recommended to set this Environment Variable
198
215
199
216
> _What if I just don't?_
200
217
201
-
Well, Secured Signal API will still work, but important Security Features won't be available
218
+
Secured Signal API will still work, but important Security Features won't be available
202
219
like Blocked Endpoints and any sort of Auth.
203
220
204
221
> [!NOTE]
205
222
> Blocked Endpoints can be reactivated by manually setting them in the Environment
206
223
207
224
#### Blocked Endpoints
208
225
209
-
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 except for...
210
-
211
-
- **/v1/about**
212
-
213
-
- **/v1/configuration**
214
-
215
-
- **/v1/devices**
216
-
217
-
- **/v1/register**
218
-
219
-
- **/v1/unregister**
220
-
221
-
- **/v1/qrcodelink**
222
-
223
-
- **/v1/accounts**
224
-
225
-
- **/v1/contacts**
226
+
Because Secured Signal API is just a Proxy you can use all of the [Signal REST API](https://github.com/bbernhard/signal-cli-rest-api/blob/master/doc/EXAMPLES.md) endpoints except for...
227
+
228
+
| Endpoint |
229
+
| :-------------------- |
230
+
|**/v1/about**|
231
+
|**/v1/configuration**|
232
+
|**/v1/devives**|
233
+
|**/v1/register**|
234
+
|**/v1/unregister**|
235
+
|**/v1/qrcodelink**|
236
+
|**/v1/accounts**|
237
+
|**/v1/contacts**|
226
238
227
239
These Endpoints are blocked by default due to Security Risks, but can be modified by setting `BLOCKED_ENDPOINTS` to a valid json array string
0 commit comments