Skip to content

Commit 3c24d63

Browse files
author
Mauricio Siu
committed
docs: enhance Cloudflare section by adding detailed steps for using Let's Encrypt and removing redundant instructions
1 parent 520060d commit 3c24d63

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

apps/docs/content/docs/core/domains/cloudflare.mdx

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,33 @@ Follow the steps in the same order to prevent any issues.
4040
</Callout>
4141

4242
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.
4443
- 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.
4545

4646
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+
4770
### Using Cloudflare's Origin CA
4871
1. Go to cloudflare dashboard and then click on `Account Home` -> Select the Domain.
4972
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
7396
**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.
7497
</Callout>
7598

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.
97-
9899

99100

100101
## Assign a Domain Flexible

0 commit comments

Comments
 (0)