You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user/enterprise/platform-tips.md
+18-15Lines changed: 18 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -255,9 +255,9 @@ $ replicatedctl app start
255
255
256
256
### Automate renewal of your Let's Encrypt SSL Certificate with a cron job
257
257
258
-
Create a file such as `/home/ubuntu/renew-certs.sh`with the following in it:
258
+
1.Create `/home/ubuntu/renew-certs.sh`containing the following script:
259
259
260
-
```
260
+
```sh
261
261
#!/bin/bash
262
262
263
263
set -u
@@ -282,25 +282,28 @@ replicatedctl app stop
282
282
sudo certbot renew
283
283
replicatedctl app start
284
284
```
285
-
Set the executable permissions you'll need by doing `chmod +x /home/ubuntu/renew-certs.sh`.
285
+
{: data-file="./home/ubuntu/renew-certs.sh"}
286
286
287
-
You'll then want to create a cronjob by using your favorite text editor, for example:
287
+
2. Make the script executable:
288
288
289
-
```
290
-
nano /etc/crontab
291
-
```
289
+
```sh
290
+
$ chmod +x /home/ubuntu/renew-certs.sh
291
+
```
292
292
293
-
Then append the below to the file that you've just opened in your text editor. Make sure to adjust the configuration with values that apply to the certificate you are creating.
293
+
3. Create a cronjob by editing `/etc/crontab` and appending the following:
294
294
295
-
```
296
-
# Renews certs at 2am on the 1st of February, May, August, and November.
297
-
# Please change the configuration that applies to the certificate you are creating.
298
-
0 2 1 2,5,8,11 * /home/ubuntu/renew-certs.sh
299
-
```
300
295
301
-
**Note: Be aware that this process will also introduce downtime.**
296
+
```
297
+
# Renews certs at 2am on the 1st of February, May, August, and November.
298
+
# Please change the configuration that applies to the certificate you are creating.
299
+
0 2 1 2,5,8,11 * /home/ubuntu/renew-certs.sh
300
+
```
301
+
302
+
Make sure to adjust the configuration with values that apply to the certificate you are creating.
303
+
304
+
> This process will introduce a small amount of downtime while the certificates are renewed.
302
305
303
-
Make sure to plan to communicate with your users every time this downtime will happen so they are aware that their builds will temporarily be stopped until the certificate gets renewed and your Travis CI Enterprise installation comes back online.
306
+
Make sure to communicate with your users before each renewal so they are aware that their builds will temporarily be stopped until the certificate gets renewed.
0 commit comments