mirror of
https://github.com/Dokploy/website
synced 2025-06-26 18:16:01 +00:00
feat: add SEO
This commit is contained in:
96
apps/docs-v2/content/docs/core/domains/cloudflare.mdx
Normal file
96
apps/docs-v2/content/docs/core/domains/cloudflare.mdx
Normal file
@@ -0,0 +1,96 @@
|
||||
---
|
||||
title: Cloudflare
|
||||
description: This guide will cover how to configure a Cloudflare domain for your applications in dokploy or panel.
|
||||
---
|
||||
|
||||
import { Callout } from 'fumadocs-ui/components/callout';
|
||||
|
||||
Cloudflare has multiple SSL's Modes:
|
||||
|
||||
1. **Strict (SSL-Only Origin Pull)**: Enforce encryption between Cloudflare and your origin. Use this mode to guarantee connections to your origin will always be encrypted, regardless of your visitor’s request.
|
||||
2. **Full (Strict)**: Enable encryption end-to-end and enforce validation on origin certificates. Use Cloudflare’s Origin CA to generate certificates for your origin.
|
||||
3. **Full**: Enable encryption end-to-end. Use this mode when your origin server supports SSL certification but does not use a valid, publicly trusted certificate.
|
||||
4. **Flexible**: Enable encryption only between your visitors and Cloudflare. This will avoid browser security warnings, but all connections between Cloudflare and your origin are made through HTTP.
|
||||
5. **Off (not secure)**: No encryption applied. Turning off SSL disables HTTPS and causes browsers to show a warning that your website is not secure.
|
||||
|
||||
We will cover two of SSL modes in this guide:
|
||||
|
||||
- **Full (Strict)**
|
||||
- **Flexible**
|
||||
|
||||
## Switch Mode
|
||||
|
||||
To switch between modes, follow these steps:
|
||||
|
||||
1. Go to cloudflare dashboard and then click on `Account Home` -> Select the Domain you want to change.
|
||||
2. On the left side, click `SSL/TLS`.
|
||||
3. Click on `Overview`.
|
||||
4. Click on Configure SSL/TLS Encryption.
|
||||
5. Select the desired mode Full (Strict) or Flexible.
|
||||
6. Click `Save`.
|
||||
|
||||
|
||||
|
||||
|
||||
## Assign a Domain Full (Strict)
|
||||
|
||||
|
||||
<Callout type="warn">
|
||||
Follow the steps in the same order to prevent any issues.
|
||||
</Callout>
|
||||
|
||||
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.
|
||||
|
||||
1. Go to cloudflare dashboard and then click on `Account Home` -> Select the Domain.
|
||||
2. On the left side, click `DNS`.
|
||||
3. Click on `Records`.
|
||||
4. Click on `Add Record`.
|
||||
5. Select `A` record type.
|
||||
6. Enter the `Host` name, eg. `api` so it will be `api.dokploy.com`.
|
||||
7. Enter the `IPv4 Address` from your server where the application is hosted eg. `1.2.3.4`.
|
||||
8. Click `Save`.
|
||||
9. Go to dokploy panel and now you can assign either for `Applications` or `Docker Compose` or `Templates Open Source`.
|
||||
10. Go to `Domains` section.
|
||||
11. Click `Create Domain`.
|
||||
12. In the `Host` field, enter the domain name eg. `api.dokploy.com`.
|
||||
13. In the `Path` field, enter the path eg. `/`.
|
||||
14. In the `Container Port` field, enter the port where your application is running eg. `3000`.
|
||||
15. In the `HTTPS` field enable `ON`.
|
||||
16. In the `Certificate` field select `Let's Encrypt`.
|
||||
17. Click `Create`.
|
||||
18. A domain will be automatically assigned to your application.
|
||||
19. Wait a few seconds and refresh the application.
|
||||
20. You should see the application running on the domain you just created.
|
||||
|
||||
|
||||
|
||||
## Assign a Domain Flexible
|
||||
|
||||
We assume that you have enabled the `Flexible` mode in the previous step, is super important to follow the steps in the same order to prevent any issues.
|
||||
|
||||
1. Go to cloudflare dashboard and then click on `Account Home` -> Select the Domain.
|
||||
2. On the left side, click `DNS`.
|
||||
3. Click on `Records`.
|
||||
4. Click on `Add Record`.
|
||||
5. Select `A` record type.
|
||||
6. Enter the `Host` name, eg. `api` so it will be `api.dokploy.com`.
|
||||
7. Enter the `IPv4 Address` from your server where the application is hosted eg. `1.2.3.4`.
|
||||
8. Click `Save`.
|
||||
9. Go to dokploy panel and now you can assign either for `Applications` or `Docker Compose` or `Templates Open Source`.
|
||||
10. Go to `Domains` section.
|
||||
11. Click `Create Domain`.
|
||||
12. In the `Host` field, enter the domain name eg. `api.dokploy.com`.
|
||||
13. In the `Path` field, enter the path eg. `/`.
|
||||
14. In the `Container Port` field, enter the port where your application is running eg. `3000`.
|
||||
15. In the `HTTPS` field enable `OFF`.
|
||||
16. In the `Certificate` field select `None`.
|
||||
17. Click `Create`.
|
||||
18. A domain will be automatically assigned to your application.
|
||||
19. Wait a few seconds and refresh the application.
|
||||
20. You should see the application running on the domain you just created.
|
||||
|
||||
|
||||
### Important Clarification on Container Ports
|
||||
|
||||
The "Container Port" specified in the domain settings is exclusively for routing traffic to the correct application container through Traefik, and does not expose the port directly to the internet. This is fundamentally different from the port settings in the "Advanced -> Ports" section, which are used to directly expose application ports. The container port in the domain settings ensures that Traefik can internally direct traffic to the specified port within the container based on the domain configuration.
|
||||
|
||||
26
apps/docs-v2/content/docs/core/domains/generated.mdx
Normal file
26
apps/docs-v2/content/docs/core/domains/generated.mdx
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
title: Generated
|
||||
description: This section outlines how to configure free HTTP domains for your applications in Dokploy, ensuring that your applications are accessible via custom URLs.
|
||||
---
|
||||
|
||||
|
||||
Dokploy use https://traefik.me to generate free domains for you.
|
||||
Quickly set up a domain for development or testing purposes without needing to register a domain.
|
||||
|
||||
|
||||
#### Steps to Generate a Domain
|
||||
|
||||
1. Go to the `domains` section.
|
||||
2. Click `Create Domain`.
|
||||
3. Click on the `Dice` Icon next to `Host` field it will generate a free domain for you.
|
||||
4. Path is `/`.
|
||||
5. `Container Port`, set the port where your application is running, eg usually for Next.js it is `3000`, for Astro is `4321`
|
||||
6. HTTPS is `OFF`.
|
||||
7. Certificate is `None`.
|
||||
8. Click `Create`.
|
||||
9. A free domain will be automatically assigned to your application.
|
||||
|
||||
|
||||
### Important Clarification on Container Ports
|
||||
|
||||
The "Container Port" specified in the domain settings is exclusively for routing traffic to the correct application container through Traefik, and does not expose the port directly to the internet. This is fundamentally different from the port settings in the "Advanced -> Ports" section, which are used to directly expose application ports. The container port in the domain settings ensures that Traefik can internally direct traffic to the specified port within the container based on the domain configuration.
|
||||
50
apps/docs-v2/content/docs/core/domains/index.mdx
Normal file
50
apps/docs-v2/content/docs/core/domains/index.mdx
Normal file
@@ -0,0 +1,50 @@
|
||||
---
|
||||
title: Domains
|
||||
description: This section outlines how to configure domains for your applications in Dokploy, ensuring that your applications are accessible via custom URLs.
|
||||
---
|
||||
|
||||
|
||||
Dokploy Provide 2 ways to add a domain to your service:
|
||||
|
||||
1. **Free Domains** from Traefik.me
|
||||
2. **Buy a domain** from one of the providers above
|
||||
|
||||
If you don't have a domain, you can use our integrated free domains from Traefik.me in the Dokploy panel, without doing any configuration however is only for HTTP, if you want to have a HTTPS domain you need to buy a domain from one of the providers above.
|
||||
|
||||
Domains are supported for:
|
||||
|
||||
- **Applications**
|
||||
- **Docker Compose**
|
||||
- **Templates Open Source**
|
||||
|
||||
|
||||
## Requirements (Optional)
|
||||
|
||||
We recommend this if you want to have a HTTPS domain, you need to buy a domain from one of the providers above.
|
||||
|
||||
- [Cloudflare](https://www.cloudflare.com/)
|
||||
- [Porkbun](https://porkbun.com/)
|
||||
- [Namecheap](https://www.namecheap.com/domains/)
|
||||
- [Name.com](https://www.name.com/)
|
||||
- [GoDaddy](https://www.godaddy.com/)
|
||||
- [Domain.com](https://www.domain.com/)
|
||||
|
||||
### Add Domain
|
||||
|
||||
Associate custom domains with your application to make it accessible over the internet.
|
||||
|
||||
- **Host**: The domain name that you want to link to your application (e.g., `api.dokploy.com`).
|
||||
- **Path**: The specific path within the domain where the application should be accessible.
|
||||
- **Container Port**: The port on the container that the domain should route to.
|
||||
- **HTTPS**: Toggle this on to enable HTTPS for your domain, providing secure, encrypted connections.
|
||||
- **Certificate**: Select (letsencrypt) or (None)
|
||||
|
||||
|
||||
### Note
|
||||
|
||||
Proper domain configuration is crucial for the accessibility and security of your application. Always verify domain settings and ensure that DNS configurations are properly set up to point to the correct IP addresses. Enable HTTPS to enhance security and trust, especially for production environments.
|
||||
|
||||
|
||||
### Important Clarification on Container Ports
|
||||
|
||||
The "Container Port" specified in the domain settings is exclusively for routing traffic to the correct application container through Traefik, and does not expose the port directly to the internet. This is fundamentally different from the port settings in the "Advanced -> Ports" section, which are used to directly expose application ports. The container port in the domain settings ensures that Traefik can internally direct traffic to the specified port within the container based on the domain configuration.
|
||||
34
apps/docs-v2/content/docs/core/domains/others.mdx
Normal file
34
apps/docs-v2/content/docs/core/domains/others.mdx
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
title: Others
|
||||
description: This guide will cover how to configure a domain from other providers for your applications in dokploy or panel.
|
||||
---
|
||||
|
||||
|
||||
In the case you don't want to use Cloudflare, you can use any domain from any provider:
|
||||
|
||||
|
||||
1. Go to your DNS Panel.
|
||||
2. Go to `Records` section.
|
||||
3. Click on `Add Record`.
|
||||
4. Select `A` record type.
|
||||
5. Enter the `Host` name, eg. `api` so it will be `api.dokploy.com`.
|
||||
6. Enter the `IPv4 Address` from your server where the application is hosted eg. `1.2.3.4`.
|
||||
7. Click `Save`.
|
||||
8. Go to dokploy panel and now you can assign either for `Applications` or `Docker Compose` or `Templates Open Source`.
|
||||
9. Go to `Domains` section.
|
||||
10. Click `Create Domain`.
|
||||
11. In the `Host` field, enter the domain name eg. `api.dokploy.com`.
|
||||
12. In the `Path` field, enter the path eg. `/`.
|
||||
13. In the `Container Port` field, enter the port where your application is running eg. `3000`.
|
||||
14. In the `HTTPS` field enable `ON`.
|
||||
15. In the `Certificate` field select `Let's Encrypt`.
|
||||
16. Click `Create`.
|
||||
17. A domain will be automatically assigned to your application.
|
||||
18. Wait a few seconds and refresh the application.
|
||||
19. You should see the application running on the domain you just created.
|
||||
|
||||
|
||||
### Important Clarification on Container Ports
|
||||
|
||||
The "Container Port" specified in the domain settings is exclusively for routing traffic to the correct application container through Traefik, and does not expose the port directly to the internet. This is fundamentally different from the port settings in the "Advanced -> Ports" section, which are used to directly expose application ports. The container port in the domain settings ensures that Traefik can internally direct traffic to the specified port within the container based on the domain configuration.
|
||||
|
||||
Reference in New Issue
Block a user