|
20 | 20 | 1. Add to `spcloudservers.json` on the appropraite server in the `/home/ubuntu/docker-compositions/specifycloud` dir.
|
21 | 21 | 2. Make sure to add https: false
|
22 | 22 | 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`) |
25 | 25 | 6. Check url
|
26 | 26 | 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) |
34 | 34 | 8. check url
|
35 | 35 | 9. note: after an ssl certificate renewal -> docker exec -it specifycloud_nginx_1 nginx -s reload
|
36 | 36 | 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 |
40 | 41 | 1. ssh into biprdsp6ap.cc.ku.edu
|
41 | 42 | 2. sudo su - spcloudbackup
|
42 | 43 | 3. Add <dbname> into the file /home/spcloudbackup/backup_specify_cloud.py
|
43 |
| -6. Asset Server |
| 44 | +7. Asset Server |
44 | 45 | 1. ssh into asset
|
45 | 46 | 2. Add <dbname> directory in attachments directory 'su specify -c "mkdir attachments/<dbname>"'
|
46 | 47 | 3. Add <dbname> to /home/specify/new-asset-server/settings.py
|
47 | 48 | 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> |
51 | 52 |
|
52 | 53 | ## Misc
|
53 | 54 |
|
|
0 commit comments