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:
123
123
124
-
```
125
-
http://sec-signal-api:8880/?@key=value
126
-
```
124
+
Supported types include **strings**, **ints** and **arrays**
125
+
126
+
`http://sec-signal-api:8880/?@key=value`
127
+
128
+
| type | example |
129
+
| :--------- | :------ |
130
+
| string | abc |
131
+
| int | 123 |
132
+
| array |[1,2,3]|
133
+
| array(int) | 1,2,3 |
134
+
| array(str) | a,b,c |
127
135
128
136
##### Format
129
137
@@ -132,38 +140,42 @@ you have to add `@` in front of any KeyValue Pair assignment.
132
140
133
141
### Environment Variables
134
142
135
-
#### API Token
143
+
#### API Token/s
144
+
145
+
Both `API_TOKEN` and `API_TOKENS` support multiple Tokens seperated by **,**.
146
+
During Authentikcation Secured Signal API will try to match the given Token against the list of Tokens inside of these Variables.
147
+
148
+
```yaml
149
+
environment:
150
+
API_TOKEN: "token1, token2, token3"
151
+
API_TOKENS: "token1, token2, token3"
152
+
```
136
153
137
154
> [!IMPORTANT]
138
155
> It is highly recommended to set this Environment Variable
139
156
140
157
> _What if I just don't?_
141
158
142
-
Well, Secured Signal API will still work, but important Security Features won't be available
159
+
Secured Signal API will still work, but important Security Features won't be available
143
160
like Blocked Endpoints and any sort of Auth.
144
161
145
162
> [!NOTE]
146
163
> Blocked Endpoints can be reactivated by manually setting them in the Environment
147
164
148
165
#### Blocked Endpoints
149
166
150
-
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...
151
-
152
-
-**/v1/about**
153
-
154
-
-**/v1/configuration**
155
-
156
-
-**/v1/devices**
157
-
158
-
-**/v1/register**
159
-
160
-
-**/v1/unregister**
161
-
162
-
-**/v1/qrcodelink**
163
-
164
-
-**/v1/accounts**
165
-
166
-
-**/v1/contacts**
167
+
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...
168
+
169
+
| Endpoint |
170
+
| :-------------------- |
171
+
| **/v1/about** |
172
+
| **/v1/configuration** |
173
+
| **/v1/devives** |
174
+
| **/v1/register** |
175
+
| **/v1/unregister** |
176
+
| **/v1/qrcodelink** |
177
+
| **/v1/accounts** |
178
+
| **/v1/contacts** |
167
179
168
180
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