Skip to content

Commit 9468be5

Browse files
Merge branch 'stellar:main' into guide-for-extending-ttl
2 parents 3da7bbf + dc09366 commit 9468be5

File tree

514 files changed

+83796
-24929
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

514 files changed

+83796
-24929
lines changed

README.md

+1-11
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Welcome to the official home repository for [Documentation][docs] for the [Stellar network][stellar].
44

5-
If you're here for the Deep Dive Docs Bounty, please navigate to the bottom of this page for all relevant information: [Deep Dive Docs Bounty](#welcome-to-the-deep-dive-docs-bounty-).
6-
75
## Table of Contents <!-- omit in toc -->
86

97
- [Contributing](#contributing)
@@ -16,11 +14,6 @@ If you're here for the Deep Dive Docs Bounty, please navigate to the bottom of t
1614
- [Custom Markdown](#custom-markdown)
1715
- [Alert](#alert)
1816
- [Code Example](#code-example)
19-
- [Welcome to the Deep Dive Docs Bounty 🐙!](#welcome-to-the-deep-dive-docs-bounty-)
20-
- [Submission process](#submission-process)
21-
- [What makes a good submission](#what-makes-a-good-submission)
22-
- [Helpful resources](#helpful-resources)
23-
- [Deep Dive Docs Bounty (not currently running) Eligibility Guidelines](#deep-dive-docs-bounty-eligibility-guidelines)
2417

2518
## Contributing
2619

@@ -238,11 +231,8 @@ const CODE_LANGS = {
238231
yaml: 'YAML',
239232
};
240233
```
241-
## Welcome to the Deep Dive Docs Bounty 🐙! (**THE DOCS BOUNTY IS NOW COMPLETED**)
242-
243-
The docs bounty ended on August 7th, 2024. All PRs submitted by end of day Eastern Time on August 7th will be accepted and reviewed. Any submissions made after August 7th are not eligible for the bounty. Thank you to all who participated!
244234

245-
**Remember that this is a community; we build together! 💪 Our code of conduct is [here](https://www.stellar.org/community/code-of-conduct) and our Privacy Policy is [here](https://www.stellar.org/privacy-policy).**
235+
**Remember that this is a community; we build together! 🫱🏻‍🫲🏽 Our code of conduct is [here](https://www.stellar.org/community/code-of-conduct) and our Privacy Policy is [here](https://www.stellar.org/privacy-policy).**
246236

247237
[docs]: https://developers.stellar.org/docs
248238
[api]: https://developers.stellar.org/api

ap_versioned_docs/version-2.8.4/admin-guide/component/security/jwt.mdx ap_versioned_docs/version-2.10/admin-guide/component/security/jwt.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ To enable JWT authentication, modify your `dev.env` file:
66
# dev.env
77
PLATFORM_SERVER_AUTH_TYPE=jwt
88
# Will be used to sign the JWT token
9-
SECRET_PLATFORM_API_AUTH_SECRET="your secret that business server will use"
9+
SECRET_PLATFORM_API_AUTH_SECRET="your secret that business server will use"
1010
```
1111

1212
</CodeExample>
1313

1414
Anchor Platform uses the HMAC SHA-256 (HS256) algorithm to sign JWT tokens. Ensure that `SECRET_PLATFORM_API_AUTH_SECRET` is at least 32 characters long for security.
1515

16-
Once enabled, all requests must include a valid `Authorization` header with the format `Bearer <JWT token>`.
16+
Once enabled, all requests must include a valid `Authorization` header with the format `Bearer <JWT token>`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
---
2+
title: Configuration
3+
sidebar_position: 10
4+
---
5+
6+
import { CodeExample } from "@site/src/components/CodeExample";
7+
8+
## Custody Server Configuration
9+
10+
If you want to use an external custody service to store and manage your wallets, then you need to deploy one more service - the Custody Server.
11+
12+
This service also needs the `STELLAR_ANCHOR_CONFIG` that was previously mentioned. By default, the `anchor-config-default-values.yaml` config file will be used.
13+
14+
Also, now you don't need to deploy the Stellar Observer since the Custody Server will be responsible for its functionality.
15+
16+
Update the configuration file of the Anchor Platform with the base URL and port.
17+
18+
<CodeExample>
19+
20+
```yaml
21+
custody_server:
22+
# The listening port of the Custody Server.
23+
# Default value: 8086
24+
port: 8086
25+
# The base URL of the Custody Server.
26+
# Default value: http://localhost:8086
27+
base_url: http://localhost:8086
28+
```
29+
30+
</CodeExample>
31+
32+
Configure authentication type.
33+
34+
<CodeExample>
35+
36+
```yaml
37+
custody_server:
38+
auth:
39+
# Type of authentication that is used when the Anchor Platform communicates with the Custody Server.
40+
# Supported values: [none, api_key, jwt]
41+
# Default value: none
42+
type: none
43+
```
44+
45+
</CodeExample>
46+
47+
If you set the `api_key` or `jwt` authentication type, then you need to add an environment variable.
48+
49+
<CodeExample>
50+
51+
```bash
52+
# dev.env
53+
SECRET_CUSTODY_SERVER_AUTH_SECRET="Custody Server auth secret"
54+
```
55+
56+
</CodeExample>
57+
58+
Start the Custody Server using Gradle or Docker.
59+
60+
<CodeExample>
61+
62+
```bash
63+
./gradlew service-runner:bootRun --args=--custody-server
64+
docker run stellar/anchor-platform:2.10.0 --custody-server
65+
```
66+
67+
</CodeExample>
68+
69+
## Anchor Platform Configuration
70+
71+
Update the configuration file of the Anchor Platform with the deposit info generator type for SEP-24 and SEP-31. Also, you need to configure a trustline check, if you use JSON-RPC.
72+
73+
<CodeExample>
74+
75+
```yaml
76+
sep24:
77+
# Used to choose how the SEP-24 deposit information (deposit address, memo and memo type) will be generated
78+
# Supported value: [self, custody, none]
79+
# Default value: self
80+
deposit_info_generator_type: custody
81+
sep31:
82+
# Used to choose how the SEP-31 deposit information (deposit address, memo and memo type) will be generated
83+
# Supported value: [self, custody, api]
84+
# Default value: self
85+
deposit_info_generator_type: custody
86+
## Trustline check configuration. Used only when custody integration is enabled
87+
custody:
88+
trustline:
89+
## @param: checkCronExpression
90+
## @type: string
91+
## Cron expression which defines how often a trustline check job runs. By default, a job runs every minute
92+
#
93+
check_cron_expression: "0 * * * * *"
94+
## @param: checkDuration
95+
## @type: integer
96+
## Determines how long (in MINUTES) the trustline will be checked. By default - 1 hour (60 minutes)
97+
#
98+
check_duration: 60
99+
## @param: checkTimeoutMessage
100+
## @type: string
101+
## The message that will be added to the SEP transaction after the duration check is exceeded
102+
#
103+
check_timeout_message: Trustline check timed out
104+
```
105+
106+
</CodeExample>
107+
108+
:::info
109+
110+
- `self` - memo and memo type are generated in the local code, and the distribution account is used for the deposit address.
111+
- `custody` - memo and memo type are generated through Custody API, for example Fireblocks, as well as the deposit address.
112+
- `none` - deposit address, memo, and memo type should be provided by the business in a PATCH/JSON-RPC request.
113+
- `api` - memo and memo type are generated through calling the anchor's GET /unique_address endpoint.
114+
115+
:::
116+
117+
## Kotlin Reference Server Configuration
118+
119+
Update the configuration file of the Kotlin Reference Server to enable custody integration.
120+
121+
<CodeExample>
122+
123+
```yaml
124+
app:
125+
# Flag that indicates that the custody integration is enabled and the payment will be submitted using the Custody Server.
126+
# Default value: false
127+
custodyEnabled: true
128+
```
129+
130+
</CodeExample>

0 commit comments

Comments
 (0)