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: apps/docs/content/docs/core/domains/cloudflare.mdx
+24-23Lines changed: 24 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,10 +40,33 @@ Follow the steps in the same order to prevent any issues.
40
40
</Callout>
41
41
42
42
You can create a certificate for your origin server using two methods:
43
-
- Using Cloudflare's Origin CA to generate a certificate for your origin server.
44
43
- Using Let's Encrypt to generate a certificate for your origin server.
44
+
- Using Cloudflare's Origin CA to generate a certificate for your origin server.
45
45
46
46
We assume that you have enabled the `Full (Strict)` mode in the previous step, is super important to follow the steps in the same order to prevent any issues.
47
+
48
+
### Using Let's Encrypt
49
+
1. Go to cloudflare dashboard and then click on `Account Home` -> Select the Domain.
50
+
2. On the left side, click `DNS`.
51
+
3. Click on `Records`.
52
+
4. Click on `Add Record`.
53
+
5. Select `A` record type.
54
+
6. Enter the `Host` name, eg. `api` so it will be `api.dokploy.com`.
55
+
7. Enter the `IPv4 Address` from your server where the application is hosted eg. `1.2.3.4`.
56
+
8. Click `Save`.
57
+
9. Go to dokploy panel and now you can assign either for `Applications` or `Docker Compose`.
58
+
10. Go to `Domains` section.
59
+
11. Click `Create Domain`.
60
+
12. In the `Host` field, enter the domain name eg. `api.dokploy.com`.
61
+
13. In the `Path` field, enter the path eg. `/`.
62
+
14. In the `Container Port` field, enter the port where your application is running eg. `3000`.
63
+
15. In the `HTTPS` field enable `ON`.
64
+
16. In the `Certificate` field select `Let's Encrypt`.
65
+
17. Click `Create`.
66
+
18. A domain will be automatically assigned to your application.
67
+
19. Wait a few seconds and refresh the application.
68
+
20. You should see the application running on the domain you just created.
69
+
47
70
### Using Cloudflare's Origin CA
48
71
1. Go to cloudflare dashboard and then click on `Account Home` -> Select the Domain.
49
72
2. On the left side, click `SSL/TLS`.
@@ -73,28 +96,6 @@ You can also create a certificate for wildcards domains eg. `*.dokploy.com` and
73
96
**Important**: With a free Cloudflare account, this methods work only for the main domain and subdomains, not for sub-subdomains. Eg. `api.dokploy.com` works but `staging.api.dokploy.com` does not work.
74
97
</Callout>
75
98
76
-
### Using Let's Encrypt
77
-
1. Go to cloudflare dashboard and then click on `Account Home` -> Select the Domain.
78
-
2. On the left side, click `DNS`.
79
-
3. Click on `Records`.
80
-
4. Click on `Add Record`.
81
-
5. Select `A` record type.
82
-
6. Enter the `Host` name, eg. `api` so it will be `api.dokploy.com`.
83
-
7. Enter the `IPv4 Address` from your server where the application is hosted eg. `1.2.3.4`.
84
-
8. Click `Save`.
85
-
9. Go to dokploy panel and now you can assign either for `Applications` or `Docker Compose`.
86
-
10. Go to `Domains` section.
87
-
11. Click `Create Domain`.
88
-
12. In the `Host` field, enter the domain name eg. `api.dokploy.com`.
89
-
13. In the `Path` field, enter the path eg. `/`.
90
-
14. In the `Container Port` field, enter the port where your application is running eg. `3000`.
91
-
15. In the `HTTPS` field enable `ON`.
92
-
16. In the `Certificate` field select `Let's Encrypt`.
93
-
17. Click `Create`.
94
-
18. A domain will be automatically assigned to your application.
95
-
19. Wait a few seconds and refresh the application.
96
-
20. You should see the application running on the domain you just created.
0 commit comments