diff --git a/sphinx/misc/add_new_instance_to_specify_cloud.md b/sphinx/misc/add_new_instance_to_specify_cloud.md index d93bc1f..1a2582b 100644 --- a/sphinx/misc/add_new_instance_to_specify_cloud.md +++ b/sphinx/misc/add_new_instance_to_specify_cloud.md @@ -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/ -d .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/ -d .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 into the file /home/spcloudbackup/backup_specify_cloud.py -6. Asset Server +7. Asset Server 1. ssh into asset 2. Add directory in attachments directory 'su specify -c "mkdir attachments/"' 3. Add to /home/specify/new-asset-server/settings.py 4. systemctl restart web-asset-server.service -7. Updown - 1. Add url: .specifycloud.org/context/system_info.json - 2. Add alias: +8. Updown + 1. Add url: .specifycloud.org/context/system_info.json + 2. Add alias: ## Misc