Skip to content

Commit

Permalink
Expand documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Fitzsimmons committed Apr 23, 2024
1 parent 783e1e4 commit 27aef08
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions sphinx/misc/add_new_instance_to_specify_cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,35 @@
1. Add to `spcloudservers.json` on the appropraite server in the `/home/ubuntu/docker-compositions/specifycloud` dir.
2. Make sure to add https: false
3. Run `make` as `ubuntu`
4. Run `docker-compose up -d`
5. Run `docker-compose restart nginx` (actually just reload is fine here: docker exec -it specifycloud_nginx_1 nginx -s reload)
4. Run `docker compose up -d`
5. Run `docker compose restart nginx` (reload should be just fine here: `docker exec -it specifycloud_nginx_1 nginx -s reload`)
6. Check url
4. Add SSL
1. mkdir /var/www/unsm-vp
2. certbot --webroot -w /var/www/<dbname> -d <dbname>.specifycloud.org certonly
3. certbot certificates
4. Remove https: false from spcloudserver.json
5. su specify -c make
6. docker-compose up -d
7. docker-compose restart (maybe just reload instead)
1. `mkdir /var/www/unsm-vp`
2. `certbot --webroot -w /var/www/<subdomain> -d <subdomain>.specifycloud.org certonly`
3. `certbot certificates`
4. Remove https: false from spcloudservers.json
5. `make`
6. `docker compose up -d`
7. `docker compose restart` (maybe just reload instead)
8. check url
9. note: after an ssl certificate renewal -> docker exec -it specifycloud_nginx_1 nginx -s reload
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`
2. crontab -e; and then add the line "0 3 * * 0,2,4,6 docker exec specifycloud_nginx_1 nginx -s reload"
3. crontab -l to list cronjobs
5. Database Backup
2. `crontab -e;` and then add the line "0 3 * * 0,2,4,6 docker exec specifycloud_nginx_1 nginx -s reload"
3. `crontab -l` to list cronjobs
5. Add Specify admin credentials to the [master list on the SCC Vault](https://docs.google.com/spreadsheets/d/1saSYJJDJdATwZvzFz873wvC-DkyBQsIQ66un1lpILE4/edit#gid=690980104)
6. Database Backup
1. ssh into biprdsp6ap.cc.ku.edu
2. sudo su - spcloudbackup
3. Add <dbname> into the file /home/spcloudbackup/backup_specify_cloud.py
6. Asset Server
7. Asset Server
1. ssh into asset
2. Add <dbname> directory in attachments directory 'su specify -c "mkdir attachments/<dbname>"'
3. Add <dbname> to /home/specify/new-asset-server/settings.py
4. systemctl restart web-asset-server.service
7. Updown
1. Add url: <dbname>.specifycloud.org/context/system_info.json
2. Add alias: <dbname>
8. Updown
1. Add url: <subdomain>.specifycloud.org/context/system_info.json
2. Add alias: <subdomain>

## Misc

Expand Down

0 comments on commit 27aef08

Please sign in to comment.