Skip to content

Commit 9dfdef7

Browse files
committed
update security.md
1 parent 04331e5 commit 9dfdef7

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

docs/concepts/domains.mdx

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,23 @@ const service = new defang.DefangService("serviceName", {
7171

7272
## Bring Your Own Domain
7373

74-
If you are using [Defang BYOC](./defang-byoc.md), you can bring your own custom domain to use with your services.
74+
You can also bring your own domain to a Defang project. This allows you to use your own domain name to access your services, and varies a little bit depending on your setup.
7575

76-
There are two main limitations to keep in mind when using Defang BYOC:
77-
1. You can only use one domain per service.
78-
2. Currently you must host your domain's DNS with the [provider](./defang-byoc.md) you are using.
79-
* [AWS documentation on public hosted zones](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/AboutHZWorkingWith.html)
76+
### BYOC or Defang Playground
8077

81-
:::tip NS Records
82-
If you want to use your existing DNS provider for other aspects of your system, you can do so and just point a subdomain to your [provider's](./defang-byoc.md) nameservers using NS records.
78+
If you are using [Defang BYOC](./defang-byoc.md) and *do not* have your domain's DNS hosted with your cloud provider, you will need to follow this flow:
79+
80+
1. Add the `domainname` to your service definition.
81+
2. Run `defang compose up` to deploy your project.
82+
3. Run `defang cert generate` to generate an SSL certificate. This command will provide instructions for where to point your domain's DNS before the certificate can be issued.
83+
84+
### BYOC
85+
86+
If you are using [Defang BYOC](./defang-byoc.md) and the DNS for your domain is hosted with your cloud provider (i.e. a Hosted Zone in Route 53, if you're using AWS), all you need to do is specify the `domainname` in your service definition, as in the example below.
87+
88+
:::warning
89+
For the time being, you can only use one domain per service.
90+
If you need to use multiple domains, please vote on this [issue](https://github.com/DefangLabs/defang/issues/247).
8391
:::
8492

8593
### Sample Configuration

docs/concepts/security.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Defang creates roles for your services to use, and attaches policies to those ro
2222

2323
Defang configures Security Groups, deploys applictions to a private subnet and uses an Application Load Balancer to route traffic to your services from the public internet only when required.
2424

25-
## TLS
25+
## SSL
2626

27-
Defang automates the process of obtaining and renewing TLS certificates for your services using AWS Certificate Manager.
27+
Defang automates the process of obtaining and renewing SSL certificates for your services using AWS Certificate Manager.
2828

2929
## Secrets
3030

0 commit comments

Comments
 (0)