Mirror from bluesky-social/pds

README: instructions for obtaining PDS admin password

+24 -5
+24 -5
README.md
··· 321 321 {"version":"0.2.2-beta.2"} 322 322 ``` 323 323 324 - #### Generate an invite code 324 + #### Obtain your PDS admin password 325 + 326 + Your PDS admin password should be in your `pds.env` file if you used the installer script. 327 + 328 + **For example:** 329 + 330 + ```bash 331 + $ source /pds/pds.env 332 + $ echo $PDS_ADMIN_PASSWORD 333 + a7b5970b6a5077bb41fc68a26d30adda 334 + ``` 335 + #### Generate an invite code for your PDS 325 336 326 337 By default, your PDS will require an invite code to create an account. 327 338 328 339 You can generate a new invite code with the following command: 329 340 330 341 ```bash 331 - curl -X POST https://<PDS_HOSTNAME>/xrpc/com.atproto.server.createInviteCode \ 332 - -u "admin:<PDS_ADMIN_PASSWORD>" \ 333 - -H "Content-Type: application/json" \ 334 - -d '{"useCount": 1}' 342 + PDS_HOSTNAME="example.com" 343 + PDS_ADMIN_PASSWORD="<YOUR PDS ADMIN PASSWORD>" 344 + 345 + curl --silent \ 346 + --show-error \ 347 + --request POST \ 348 + --user "admin:${PDS_ADMIN_PASSWORD}" \ 349 + --header "Content-Type: application/json" \ 350 + --data '{"useCount": 1}' \ 351 + https://${PDS_HOSTNAME}/xrpc/com.atproto.server.createInviteCode 335 352 ``` 353 + 354 + **Note:** the `useCount` field specifies how many times an invite code can be used 336 355 337 356 ### Connecting to your server 338 357