Show More
@@ -17,18 +17,20 b' https://doc.traefik.io/traefik/https/tls/' | |||
|
17 | 17 | Enable file based certificates |
|
18 | 18 | ++++++++++++++++++++++++++++++ |
|
19 | 19 | |
|
20 | File based certificates should be places inside this :file:`.custom/traefik_custom/dynamic/certs` | |
|
20 | File based certificates (including self-signed) should be places inside this :file:`.custom/traefik_custom/dynamic/certs` | |
|
21 | We recommend using standard names for the .crt file (rhodecode-ssl.crt) and .key file (rhodecode-ssl.key). | |
|
21 | 22 | |
|
22 | e.g | |
|
23 | ||
|
24 | e.g. | |
|
23 | 25 | |
|
24 | 26 | .. code-block:: bash |
|
25 | 27 | |
|
26 | 28 | root@Ubuntu-2204 ~/rhodecode_docker # ls -la .custom/traefik_custom/certs/ |
|
27 | 29 | total 416 |
|
28 | 30 | drwxr-xr-x 2 root root 4096 Jan 7 2023 . |
|
29 |
drwxr-xr-x 4 |
|
|
30 |
-rw-r--r-- 1 root root 411001 Jan 7 2023 rhodecode- |
|
|
31 |
-rw-r--r-- 1 root root 1675 |
|
|
31 | drwxr-xr-x 4 root root 4096 Jan 22 2023 .. | |
|
32 | -rw-r--r-- 1 root root 411001 Jan 7 2023 rhodecode-ssl.crt | |
|
33 | -rw-r--r-- 1 root root 1675 Jan 7 2023 rhodecode-ssl.key | |
|
32 | 34 | |
|
33 | 35 | Then those file can be enabled to act as a default certificates used in traefik. |
|
34 | 36 | |
@@ -44,8 +46,8 b' In file :file:`.custom/traefik_custom/dynamic/traefik_dynamic_custom.yaml` there' | |||
|
44 | 46 | # the below should be used only if acme/letsencrypt is not used, and we want a default file-based SSL certificates |
|
45 | 47 | certificates: |
|
46 | 48 | # first certificate in default store |
|
47 |
- certFile: /etc/traefik/certs/rhodecode- |
|
|
48 |
keyFile: /etc/traefik/certs/rhodecode- |
|
|
49 | - certFile: /etc/traefik/certs/rhodecode-ssl.crt | |
|
50 | keyFile: /etc/traefik/certs/rhodecode-ssl.key | |
|
49 | 51 | stores: |
|
50 | 52 | - default |
|
51 | 53 |
General Comments 0
You need to be logged in to leave comments.
Login now