Skip to content

Commit 42050ca

Browse files
authored
Fix missing config (#192)
* fix: update env files and compose config for self-hosted setup - Add missing CGW env vars: ALLOW_CORS, RELAY_PROVIDER_API_KEY_UNICHAIN, blocklist config, and dummy AWS credentials for CSV export - Add NEXT_PUBLIC_DEFAULT_MAINNET_CHAIN_ID to ui.env for dedicated chain deployments - Rename deprecated NEXT_PUBLIC_WC_BRIDGE to NEXT_PUBLIC_WC_PROJECT_ID - Fix circular dependency: move ui from nginx depends_on to nginx healthcheck - Document required chain features in docs/chain_info.md * update README to add disclaimer about new FSL-1.1-MIT license
1 parent 191dcb7 commit 42050ca

5 files changed

Lines changed: 41 additions & 3 deletions

File tree

container_env_files/cgw.env

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ SAFE_CONFIG_BASE_URI=http://nginx:8000/cfg
99
# The RPC provider to be used.
1010
INFURA_API_KEY=''
1111

12+
# CORS
13+
ALLOW_CORS=true
14+
1215
# Redis
1316
# The host name of where the Redis instance is running
1417
REDIS_HOST=cgw-redis
@@ -69,6 +72,7 @@ RELAY_PROVIDER_API_KEY_AVALANCHE=''
6972
RELAY_PROVIDER_API_KEY_LINEA=''
7073
RELAY_PROVIDER_API_KEY_BLAST=''
7174
RELAY_PROVIDER_API_KEY_SEPOLIA=''
75+
RELAY_PROVIDER_API_KEY_UNICHAIN=''
7276

7377
# Staking Provider
7478
# The staking provider to be used.
@@ -92,5 +96,21 @@ JWT_SECRET=''
9296
# Community
9397
FINGERPRINT_ENCRYPTION_KEY=''
9498

99+
# DB
95100
POSTGRES_HOST=cgw-db
96101
POSTGRES_DB=postgres
102+
103+
# CSV Export
104+
CSV_AWS_ACCESS_KEY_ID=dummy
105+
CSV_AWS_SECRET_ACCESS_KEY=dummy
106+
AWS_ACCESS_KEY_ID=dummy
107+
AWS_SECRET_ACCESS_KEY=dummy
108+
109+
# The encrypted blocklist data
110+
# This contains the list of blocked addresses in encrypted format
111+
BLOCKLIST_ENCRYPTED_DATA=
112+
# The secret key for decrypting the blocked addresses list
113+
BLOCKLIST_SECRET_KEY=
114+
# The salt used for key derivation during encryption/decryption
115+
# Use a unique salt per environment
116+
BLOCKLIST_SECRET_SALT=

container_env_files/ui.env

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
NEXT_PUBLIC_INFURA_TOKEN=
33
NEXT_PUBLIC_GATEWAY_URL_PRODUCTION=http://localhost:8000/cgw
44

5+
### For specific chain deployment
6+
NEXT_PUBLIC_DEFAULT_MAINNET_CHAIN_ID=
7+
58
# infura token used by Safe Apps
69
NEXT_PUBLIC_SAFE_APPS_INFURA_TOKEN=
710

@@ -25,7 +28,7 @@ NEXT_PUBLIC_SENTRY_DSN=
2528
NEXT_PUBLIC_BEAMER_ID=
2629

2730
# Wallet specific variables
28-
NEXT_PUBLIC_WC_BRIDGE=
31+
NEXT_PUBLIC_WC_PROJECT_ID=
2932
NEXT_PUBLIC_FORTMATIC_KEY=
3033
NEXT_PUBLIC_PORTIS_KEY=
3134
NEXT_PUBLIC_CYPRESS_MNEMONIC=

docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ services:
3838
- cfg-web
3939
- cgw-web
4040
- events-web
41+
- ui
4142

4243
txs-db:
4344
image: postgres:14-alpine
@@ -168,8 +169,6 @@ services:
168169
image: safeglobal/safe-wallet-web:${UI_VERSION}
169170
env_file:
170171
- container_env_files/ui.env
171-
depends_on:
172-
- nginx
173172
expose:
174173
- 8080
175174

docs/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Safe Infrastructure
22

3+
> Please note that software releases of some Safe services after Feb 17, 2026 are published by Safe Labs under **FSL-1.1-MIT license**.
4+
> This license does not permit making the software available to others in certain commercial products or services. You can find the applicable license texts in each GitHub repository and more information in our [blog](https://safe.global/blog/providing-the-infrastructure-for-self-custody-for-the-next-generation).
5+
36
**Safe infrastructure diagram**
7+
48
<figure><img src="./diagrams/safe-infrastructure-diagram.png" width="100%" alt="" /></figure>
59

610
- **Tx Service** is the core of the Safe. It indexes multisig transactions, module transactions, token transfers, collects signatures... There must be **1 Tx Service per Chain**, with different workers, PostgreSQL, Redis and RabbitMQ.

docs/chain_info.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,15 @@ For the web app to be able to render links correctly you need to supply URLs wit
5353
```
5454

5555
The `{{address}}` (Ethereum address `0x` prefixed) and `{{txHash}}` (transaction hash) are markers in the URL acting as placeholders that the Safe web app will use to replace values to construct links to block explorer corresponding to that chain. It is important that you indicate these correctly so links are valid at the moment of rendering.
56+
57+
## Features
58+
59+
Add and Enable the following features to your chain:
60+
61+
- `MY_ACCOUNTS `
62+
- `SPENDING_LIMIT`
63+
- `SAFE_APPS`
64+
- `ERC1155`
65+
- `ERC721`
66+
- `DOMAIN_LOOKUP`
67+
- `CONTRACT_INTERACTION`

0 commit comments

Comments
 (0)