Skip to content

Commit f1815a8

Browse files
Update Specify Cloud Instance Instructions
1 parent 56b3d02 commit f1815a8

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

sphinx/misc/add_new_instance_to_specify_cloud.md

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,38 +24,35 @@
2424
5. Run `docker compose restart nginx` (reload should be just fine here: `docker exec -it specifycloud_nginx_1 nginx -s reload`)
2525
6. Check url
2626
4. Add SSL
27-
1. `mkdir /var/www/unsm-vp`
28-
2. `certbot --webroot -w /var/www/<subdomain> -d <subdomain>.specifycloud.org certonly`
29-
3. `certbot certificates`
30-
4. Remove https: false from spcloudservers.json
31-
5. `make`
32-
6. `docker compose up -d`
33-
7. `docker compose restart` (maybe just reload instead)
34-
8. check url
35-
9. note: after an ssl certificate renewal -> docker exec -it specifycloud_nginx_1 nginx -s reload
27+
1. Run the `add_ssl.sh` script and follow the prompts.
28+
```
29+
sudo sh add_ssl.sh
30+
```
31+
You will need to provide the `<subdomain>` for the new instance that you wish to add. After this, it will update the `spcloudservers.json` and set `"https": false` to `"https": true` for that instance, then restart all of the running containers.
32+
8. Check URL
33+
9. **Note:** After an SSL certificate renewal, you can reload nginx without restarting the whole container:
34+
```
35+
docker exec -it specifycloud-nginx-1 nginx -s reload
36+
```
3637
1. For automatic nginx reloading on certificate renewal create /etc/letsencrypt/renewal-hooks/post/reload-nginx.sh `#!/bin/bash docker exec -it specifycloud_nginx_1 nginx -s reload`
3738
2. `crontab -e;` and then add the line "0 3 * * 0,2,4,6 docker exec specifycloud_nginx_1 nginx -s reload"
3839
3. `crontab -l` to list cronjobs
39-
5. Add Specify admin credentials to the [master list on the SCC Vault](https://docs.google.com/spreadsheets/d/1saSYJJDJdATwZvzFz873wvC-DkyBQsIQ66un1lpILE4/edit#gid=690980104)
40-
6. Database Backup
41-
1. `ssh` into `biprdsp6ap.cc.ku.edu`
42-
2. `sudo su - spcloudbackup`
43-
3. Add <dbname> into the file /home/spcloudbackup/backup_specify_cloud.py
40+
5. Add Specify Admin user credentials to the Bitwarden Vault
4441
7. Asset Server
45-
1. ssh into asset
46-
2. Add <dbname> directory in attachments directory 'su specify -c "mkdir attachments/<dbname>"'
47-
3. Add <dbname> to /home/specify/new-asset-server/settings.py
42+
1. SSH into the appropriate Asset Server for the region
43+
2. Add `<dbname>` directory in attachments directory 'su specify -c "mkdir attachments/`<dbname>`"'
44+
3. Add `<dbname>` to /home/specify/new-asset-server/settings.py
4845
4. systemctl restart web-asset-server.service
4946
8. Updown
50-
1. Add url: <subdomain>.specifycloud.org/context/system_info.json
51-
2. Add alias: <subdomain>
47+
1. Add url: `<subdomain>`.specifycloud.org/context/system_info.json
48+
2. Add alias: `<subdomain>`
5249

5350
## Misc
5451

5552
* Add ssh key:
5653

5754
```bash
58-
vim .ssh/authorized_keys
55+
nano .ssh/authorized_keys
5956
sudo systemctl reload sshd
6057
```
6158

@@ -71,8 +68,8 @@ systemctl start mariadb.service
7168
* Fix an instance by restarting it:
7269

7370
```bash
74-
sudo docker exec -it specifycloud_nginx_1 nginx -s reload;
71+
sudo docker exec -it specifycloud-nginx-1 nginx -s reload;
7572
sudo docker stop client client-worker;
7673
sudo docker compose up -d;
77-
sudo docker exec -it specifycloud_nginx_1 nginx -s reload;
74+
sudo docker exec -it specifycloud-nginx-1 nginx -s reload;
7875
```

0 commit comments

Comments
 (0)