Skip to content

Commit b0530b9

Browse files
committed
renew traefik certificate docs
1 parent 10c910e commit b0530b9

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Nemanja Mitic https://github.com/nemanjam/nextjs-prisma-boilerplate
3+
Copyright (c) 2022 Nemanja Mitic
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs/traefik.md

+26
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,29 @@ labels:
4848
```
4949
5050
- set env vars on host permanently?
51+
52+
#### Renew Let's Encrypt certificate manually
53+
54+
[tutorial](https://traefik.io/blog/how-to-force-update-lets-encrypt-certificates/)
55+
56+
```bash
57+
# -rw------- 1 ubuntu ubuntu 42335 May 15 10:45 acme.json
58+
59+
# download acme.json
60+
scp ubuntu@amd1:/home/ubuntu/traefik-proxy/core/traefik-data/acme.json ./core/traefik-data/acme.json
61+
62+
# remove all from array
63+
"Certificates": []
64+
65+
# push back edited to server
66+
# chmod stays same 600
67+
# -rw------- 1 ubuntu ubuntu 3533 Jul 10 15:27 acme.json
68+
scp ./core/traefik-data/acme.json ubuntu@amd1:/home/ubuntu/traefik-proxy/core/traefik-data/acme.json
69+
70+
# restart traefik
71+
docker-compose down
72+
docker-compose up -d
73+
74+
# backup on server
75+
scp ./core/traefik-data/acme.json ubuntu@amd1:/home/ubuntu/acme.json.back
76+
```

0 commit comments

Comments
 (0)