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
docs: update hasura with examples of graphQL useage and postgres, and… (#148)
… missing dns config details from custom deployments
## Summary by Sourcery
Document Hasura usage with GraphQL and PostgreSQL, and add missing DNS
configuration details for custom deployments.
Enhancements:
- Add missing DNS configuration details for custom deployments,
including obtaining the application's hostname, accessing DNS settings,
configuring DNS records, setting TTL, verifying DNS propagation, and
SSL/TLS configuration.
Documentation:
- Document Hasura database interaction through GraphQL API and direct
PostgreSQL connection.
- Add usage examples for GraphQL and PostgreSQL.
- Document authentication setup for both GraphQL and PostgreSQL.
Co-authored-by: saeeddawod <saeed.dawod@gmail.com>
Copy file name to clipboardExpand all lines: docs/using-platform/14_custom-deployment.md
+25-3Lines changed: 25 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ A Custom Deployment allows you to deploy your own Docker images, such as fronten
25
25
- Environment variables (if required)
26
26
- Custom domain information (if applicable)
27
27
5. Configure any additional settings as needed.
28
-
6. Click on 'Confirm' and wait for the Custom Deployment to be in the Running status.
28
+
6. Click on 'Confirm' and wait for the Custom Deployment to be in the Running status.[View the list of statuses](../reference/14_statuses.md).
29
29
30
30
</TabItem>
31
31
<TabItemvalue="sdk-cli"label="SDK CLI">
@@ -92,9 +92,15 @@ When using custom domains with your Custom Deployment, you'll need to configure
92
92
- Enter your desired custom domain (e.g., example.com for top-level domain or app.example.com for subdomain).
93
93
- Save the changes to update your Custom Deployment settings.
94
94
95
-
2.**Configure DNS Records**:
95
+
2.**Obtain Your Application's Hostname**: After adding your custom domain, the SettleMint platform will provide you with an ALIAS (for top-level domains) or CNAME (for subdomains) record. This can be found in the "Connect" tab of your Custom Deployment.
96
+
97
+
3.**Access Your Domain's DNS Settings**: Log in to your domain registrar or DNS provider's control panel.
98
+
99
+
4.**Configure DNS Records**:
96
100
97
101
For Top-Level Domains (e.g., example.com):
102
+
- Remove any existing A and AAAA records for the domain you're configuring.
103
+
- Remove any existing A and AAAA records for the www domain (e.g., www.example.com) if you're using it.
98
104
```
99
105
ALIAS example.com gke-europe.settlemint.com
100
106
ALIAS www.example.com gke-europe.settlemint.com
@@ -105,6 +111,20 @@ When using custom domains with your Custom Deployment, you'll need to configure
105
111
CNAME app.example.com gke-europe.settlemint.com
106
112
```
107
113
114
+
5.**Set TTL (Time to Live)**:
115
+
- Set a lower TTL (e.g., 300 seconds) initially to allow for quicker propagation.
116
+
- You can increase it later for better caching (e.g., 3600 seconds).
117
+
118
+
6.**Verify DNS Propagation**:
119
+
- Use online DNS lookup tools to check if your DNS changes have propagated.
120
+
- Note that DNS propagation can take up to 48 hours, although it's often much quicker.
121
+
122
+
7.**SSL/TLS Configuration**:
123
+
- The SettleMint platform typically handles SSL/TLS certificates automatically for both top-level domains and subdomains.
124
+
- If you need to use your own certificates, please contact us for assistance and further instructions.
125
+
126
+
Note: The configuration process is similar for both top-level domains and subdomains. The main difference lies in the type of DNS record you create (ALIAS for top-level domains, CNAME for subdomains) and whether you need to remove existing records.
127
+
108
128
## Manage Custom Deployments
109
129
110
130
<Tabs>
@@ -173,7 +193,7 @@ When using Custom Deployment, keep the following limitations in mind:
173
193
1.**No Root User Privileges**: Your application will run without root user privileges for security reasons.
174
194
175
195
2.**Read-Only Filesystem**: The filesystem is read-only. For data persistence, consider using:
176
-
- Hasura: A GraphQL engine that provides a scalable database solution
196
+
- Hasura: A GraphQL engine that provides a scalable database solution. See [Hasura](./9_hasura-backend-as-a-service.md).
177
197
- Other External Services: Depending on your specific needs, you may use other cloud-based storage or database services
178
198
179
199
3.**Stateless Applications**: Your applications should be designed to be stateless. This ensures better scalability and reliability in a cloud environment.
@@ -187,6 +207,8 @@ When using Custom Deployment, keep the following limitations in mind:
187
207
- Implement proper logging to facilitate debugging and monitoring
188
208
- Regularly update your container images to include the latest security patches
189
209
210
+
Custom Deployment offers a powerful way to extend the capabilities of your blockchain solutions on the SettleMint platform. By following these guidelines and best practices, you can seamlessly integrate your custom applications into your blockchain ecosystem.
211
+
190
212
:::info Note
191
213
Custom Deployments support automatic SSL/TLS certificate management for custom domains.
1.**Hasura Admin Secret**: Found in the "Connect" tab of Hasura console
351
+
2.**Application Access Token**: Generate this by following our [Application Access Tokens guide](16_application-access-tokens.md)
352
+
353
+
For PostgreSQL:
354
+
1.**PostgreSQL Connection String**: Found in the "Connect" tab of Hasura console under "Database URL"
355
+
356
+
357
+
:::warning
358
+
Always keep your credentials secure and never expose them in client-side code. Use environment variables or a secure configuration management system in production environments.
0 commit comments