Skip to content

Commit 27aef08

Browse files
author
Fitzsimmons
committed
Expand documentation
1 parent 783e1e4 commit 27aef08

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

sphinx/misc/add_new_instance_to_specify_cloud.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,35 @@
2020
1. Add to `spcloudservers.json` on the appropraite server in the `/home/ubuntu/docker-compositions/specifycloud` dir.
2121
2. Make sure to add https: false
2222
3. Run `make` as `ubuntu`
23-
4. Run `docker-compose up -d`
24-
5. Run `docker-compose restart nginx` (actually just reload is fine here: docker exec -it specifycloud_nginx_1 nginx -s reload)
23+
4. Run `docker compose up -d`
24+
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/<dbname> -d <dbname>.specifycloud.org certonly
29-
3. certbot certificates
30-
4. Remove https: false from spcloudserver.json
31-
5. su specify -c make
32-
6. docker-compose up -d
33-
7. docker-compose restart (maybe just reload instead)
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)
3434
8. check url
3535
9. note: after an ssl certificate renewal -> docker exec -it specifycloud_nginx_1 nginx -s reload
3636
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`
37-
2. crontab -e; and then add the line "0 3 * * 0,2,4,6 docker exec specifycloud_nginx_1 nginx -s reload"
38-
3. crontab -l to list cronjobs
39-
5. Database Backup
37+
2. `crontab -e;` and then add the line "0 3 * * 0,2,4,6 docker exec specifycloud_nginx_1 nginx -s reload"
38+
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
4041
1. ssh into biprdsp6ap.cc.ku.edu
4142
2. sudo su - spcloudbackup
4243
3. Add <dbname> into the file /home/spcloudbackup/backup_specify_cloud.py
43-
6. Asset Server
44+
7. Asset Server
4445
1. ssh into asset
4546
2. Add <dbname> directory in attachments directory 'su specify -c "mkdir attachments/<dbname>"'
4647
3. Add <dbname> to /home/specify/new-asset-server/settings.py
4748
4. systemctl restart web-asset-server.service
48-
7. Updown
49-
1. Add url: <dbname>.specifycloud.org/context/system_info.json
50-
2. Add alias: <dbname>
49+
8. Updown
50+
1. Add url: <subdomain>.specifycloud.org/context/system_info.json
51+
2. Add alias: <subdomain>
5152

5253
## Misc
5354

0 commit comments

Comments
 (0)