Update board.net maintenance authored by Rein Martin's avatar Rein Martin
## deleting boards ## deleting boards
As Pads are used anonymously we do not apply any roles, so we can not allow somebody to make deletions, else that would cause conflicts among users (think of pupils). As Pads are used anonymously we do not apply any roles, so we can not allow somebody to make deletions, else that would cause conflicts among users (think of pupils).
If you want to have a pad deleted please write a message to support@fairkom.eu If you want to have a pad deleted please write a message to support@fairkom.eu
...@@ -8,19 +8,37 @@ As a sysadmin we have some tools: ...@@ -8,19 +8,37 @@ As a sysadmin we have some tools:
## API call ## API call
We can delete a board by API call We can delete a board by API call
https://board.net/api/1/deletePad?apikey=secret12345&padID=Myseminar-B3S ```
https://board.net/api/1/deletePad?apikey=secret12345&padID=Myseminar-B3S
```
or preferred is directly on heu2 so that key is not exposed: or preferred is directly on heu2 so that key is not exposed:
curl "https://board.net/api/1/deletePad?apikey=secret029b3f1&padID=Myseminar-B3S" ```
curl "https://board.net/api/1/deletePad?apikey=secret029b3f1&padID=Myseminar-B3S"
```
Since heu2 does not resolve his own dns use:
```
curl "https://127.0.0.1/api/1/deletePad?apikey=secret029b3f1&padID=Myseminar-B3S"
```
or
Admins: see https://etherpad.org/doc/latest/#index_http_api get how to secret logged in the server from `cat /opt/etherpad-lite/APIKEY.txt` or from keepass. ```
curl "https://localhost/api/1/deletePad?apikey=secret029b3f1&padID=Myseminar-B3S"
```
If we only know the read only link, we need to get the PadID first: Admins: see https://etherpad.org/doc/latest/#index_http_api get how to secret logged in the server from `cat /opt/etherpad-lite/APIKEY.txt` or from keepass.
"https://board.net/api/1.2.14/getPadID?apikey=apikey...&roID=r.dcaf13c86f0df1fbb3627394515087c3" If we only know the read only link, we need to get the PadID first:
```
"https://board.net/api/1.2.14/getPadID?apikey=apikey...&roID=r.dcaf13c86f0df1fbb3627394515087c3"
```
## delete script ## delete script
...@@ -33,10 +51,10 @@ node bin/checkPad.js test ...@@ -33,10 +51,10 @@ node bin/checkPad.js test
node bin/deletePad.js test node bin/deletePad.js test
``` ```
## adminpads2 plugin ## adminpads2 plugin
This is too slow (**so don't use - can cause etherpad to crash! use api calls instead**) see https://github.com/ether/etherpad-lite/issues/2899#issuecomment-779611308 This is too slow (**so don't use - can cause etherpad to crash! use api calls instead**) see https://github.com/ether/etherpad-lite/issues/2899#issuecomment-779611308
## donation ## donation
If you requested a board for deletion, we welcome your donation to cover expenses to run the board.net service and for personal support: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5TQ33F5GUFLLE If you requested a board for deletion, we welcome your donation to cover expenses to run the board.net service and for personal support: https://www.paypal.com/cgi-bin/webscr?cmd=\_s-xclick&hosted_button_id=5TQ33F5GUFLLE
\ No newline at end of file \ No newline at end of file