@powerhousedao/academy 3.1.2 → 3.2.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,69 +1,238 @@
|
|
|
1
|
-
## 3.1
|
|
1
|
+
## 3.2.0-dev.1 (2025-06-19)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **connect,builder-tools:** support base paths without ending slash ([1ee6d9d9f](https://github.com/powerhouse-inc/powerhouse/commit/1ee6d9d9f))
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- acaldas
|
|
10
|
+
|
|
11
|
+
## 3.2.0-dev.0 (2025-06-18)
|
|
12
|
+
|
|
13
|
+
### 🚀 Features
|
|
14
|
+
|
|
15
|
+
- use document model subgraph when clicking on switchboard url button ([24cf6ad94](https://github.com/powerhouse-inc/powerhouse/commit/24cf6ad94))
|
|
16
|
+
|
|
17
|
+
### ❤️ Thank You
|
|
18
|
+
|
|
19
|
+
- acaldas @acaldas
|
|
20
|
+
|
|
21
|
+
## 2.5.0-dev.41 (2025-06-18)
|
|
2
22
|
|
|
3
23
|
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
4
24
|
|
|
5
|
-
##
|
|
25
|
+
## 2.5.0-dev.40 (2025-06-18)
|
|
6
26
|
|
|
7
27
|
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
8
28
|
|
|
9
|
-
##
|
|
29
|
+
## 2.5.0-dev.39 (2025-06-18)
|
|
10
30
|
|
|
11
31
|
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
12
32
|
|
|
13
|
-
## 2.5.0-
|
|
33
|
+
## 2.5.0-dev.38 (2025-06-18)
|
|
34
|
+
|
|
35
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
36
|
+
|
|
37
|
+
## 2.5.0-dev.37 (2025-06-18)
|
|
38
|
+
|
|
39
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
40
|
+
|
|
41
|
+
## 2.5.0-dev.36 (2025-06-18)
|
|
42
|
+
|
|
43
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
44
|
+
|
|
45
|
+
## 2.5.0-dev.35 (2025-06-18)
|
|
46
|
+
|
|
47
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
48
|
+
|
|
49
|
+
## 2.5.0-dev.34 (2025-06-18)
|
|
50
|
+
|
|
51
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
52
|
+
|
|
53
|
+
## 2.5.0-dev.33 (2025-06-18)
|
|
54
|
+
|
|
55
|
+
### 🩹 Fixes
|
|
56
|
+
|
|
57
|
+
- deploy not on push to main ([63eef7020](https://github.com/powerhouse-inc/powerhouse/commit/63eef7020))
|
|
58
|
+
- deploy powerhouse to available environments ([a45859a22](https://github.com/powerhouse-inc/powerhouse/commit/a45859a22))
|
|
59
|
+
|
|
60
|
+
### ❤️ Thank You
|
|
61
|
+
|
|
62
|
+
- Frank
|
|
63
|
+
|
|
64
|
+
## 2.5.0-dev.32 (2025-06-18)
|
|
14
65
|
|
|
15
66
|
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
16
67
|
|
|
17
|
-
## 2.5.0-
|
|
68
|
+
## 2.5.0-dev.31 (2025-06-18)
|
|
18
69
|
|
|
19
70
|
### 🚀 Features
|
|
20
71
|
|
|
21
72
|
- **connect,builder-tools,ph-cli:** added support for path argument on ph connect build and preview ([fe049aae8](https://github.com/powerhouse-inc/powerhouse/commit/fe049aae8))
|
|
22
|
-
- add app skeleton to html at build time ([1882bb820](https://github.com/powerhouse-inc/powerhouse/commit/1882bb820))
|
|
23
73
|
- **reactor:** initial event-bus implementation with tests and benchmarks ([ef5b3c42e](https://github.com/powerhouse-inc/powerhouse/commit/ef5b3c42e))
|
|
24
74
|
|
|
25
75
|
### 🩹 Fixes
|
|
26
76
|
|
|
27
|
-
- deploy not on push to main ([63eef7020](https://github.com/powerhouse-inc/powerhouse/commit/63eef7020))
|
|
28
|
-
- deploy powerhouse to available environments ([a45859a22](https://github.com/powerhouse-inc/powerhouse/commit/a45859a22))
|
|
29
77
|
- **ph-cli:** install and uninstall packages with and without version tag ([c2a4ad13f](https://github.com/powerhouse-inc/powerhouse/commit/c2a4ad13f))
|
|
30
|
-
- **connect:** set proper tag on docker build ([598c1b3fb](https://github.com/powerhouse-inc/powerhouse/commit/598c1b3fb))
|
|
31
78
|
|
|
32
79
|
### ❤️ Thank You
|
|
33
80
|
|
|
34
|
-
- acaldas
|
|
81
|
+
- acaldas
|
|
35
82
|
- Benjamin Jordan (@thegoldenmule)
|
|
36
83
|
- Frank
|
|
37
84
|
|
|
38
|
-
## 2.5.0-
|
|
85
|
+
## 2.5.0-dev.30 (2025-06-17)
|
|
86
|
+
|
|
87
|
+
### 🩹 Fixes
|
|
88
|
+
|
|
89
|
+
- **connect:** set proper tag on docker build ([598c1b3fb](https://github.com/powerhouse-inc/powerhouse/commit/598c1b3fb))
|
|
90
|
+
|
|
91
|
+
### ❤️ Thank You
|
|
92
|
+
|
|
93
|
+
- Frank
|
|
94
|
+
|
|
95
|
+
## 2.5.0-dev.29 (2025-06-17)
|
|
96
|
+
|
|
97
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
98
|
+
|
|
99
|
+
## 2.5.0-dev.28 (2025-06-16)
|
|
100
|
+
|
|
101
|
+
### 🚀 Features
|
|
102
|
+
|
|
103
|
+
- add app skeleton to html at build time ([1882bb820](https://github.com/powerhouse-inc/powerhouse/commit/1882bb820))
|
|
104
|
+
|
|
105
|
+
### ❤️ Thank You
|
|
106
|
+
|
|
107
|
+
- acaldas
|
|
108
|
+
|
|
109
|
+
## 2.5.0-dev.27 (2025-06-16)
|
|
110
|
+
|
|
111
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
112
|
+
|
|
113
|
+
## 2.5.0-dev.26 (2025-06-16)
|
|
114
|
+
|
|
115
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
116
|
+
|
|
117
|
+
## 2.5.0-dev.25 (2025-06-13)
|
|
39
118
|
|
|
40
119
|
### 🚀 Features
|
|
41
120
|
|
|
42
121
|
- start dependent services with switchboard ([188c82c6a](https://github.com/powerhouse-inc/powerhouse/commit/188c82c6a))
|
|
122
|
+
|
|
123
|
+
### 🩹 Fixes
|
|
124
|
+
|
|
125
|
+
- **docker:** request write permissions ([29d4d3fd7](https://github.com/powerhouse-inc/powerhouse/commit/29d4d3fd7))
|
|
126
|
+
|
|
127
|
+
### ❤️ Thank You
|
|
128
|
+
|
|
129
|
+
- Frank
|
|
130
|
+
|
|
131
|
+
## 2.5.0-dev.24 (2025-06-13)
|
|
132
|
+
|
|
133
|
+
### 🚀 Features
|
|
134
|
+
|
|
43
135
|
- added hostnames in docker compose ([a590eea17](https://github.com/powerhouse-inc/powerhouse/commit/a590eea17))
|
|
44
136
|
- **docker-compose:** work with published images ([9f31b70fb](https://github.com/powerhouse-inc/powerhouse/commit/9f31b70fb))
|
|
45
137
|
- **ci:** build and publish docker images on newly created tags ([ee930c4a4](https://github.com/powerhouse-inc/powerhouse/commit/ee930c4a4))
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
|
|
138
|
+
|
|
139
|
+
### ❤️ Thank You
|
|
140
|
+
|
|
141
|
+
- Frank
|
|
142
|
+
|
|
143
|
+
## 2.5.0-dev.23 (2025-06-13)
|
|
144
|
+
|
|
145
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
146
|
+
|
|
147
|
+
## 2.5.0-dev.22 (2025-06-13)
|
|
51
148
|
|
|
52
149
|
### 🩹 Fixes
|
|
53
150
|
|
|
54
|
-
- **docker:** request write permissions ([29d4d3fd7](https://github.com/powerhouse-inc/powerhouse/commit/29d4d3fd7))
|
|
55
151
|
- **ci:** set proper tags for docker images ([3cab91969](https://github.com/powerhouse-inc/powerhouse/commit/3cab91969))
|
|
56
152
|
- **ci:** connect deployment ([8ac8e423b](https://github.com/powerhouse-inc/powerhouse/commit/8ac8e423b))
|
|
57
153
|
|
|
58
154
|
### ❤️ Thank You
|
|
59
155
|
|
|
60
|
-
- acaldas
|
|
61
156
|
- Frank
|
|
62
157
|
|
|
63
|
-
## 2.5.0-
|
|
158
|
+
## 2.5.0-dev.21 (2025-06-12)
|
|
159
|
+
|
|
160
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
161
|
+
|
|
162
|
+
## 2.5.0-dev.20 (2025-06-12)
|
|
163
|
+
|
|
164
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
165
|
+
|
|
166
|
+
## 2.5.0-dev.19 (2025-06-12)
|
|
167
|
+
|
|
168
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
169
|
+
|
|
170
|
+
## 2.5.0-dev.18 (2025-06-12)
|
|
171
|
+
|
|
172
|
+
### 🚀 Features
|
|
173
|
+
|
|
174
|
+
- added docker publish workflow ([adf65ef8a](https://github.com/powerhouse-inc/powerhouse/commit/adf65ef8a))
|
|
175
|
+
|
|
176
|
+
### ❤️ Thank You
|
|
177
|
+
|
|
178
|
+
- Frank
|
|
179
|
+
|
|
180
|
+
## 2.5.0-dev.17 (2025-06-12)
|
|
181
|
+
|
|
182
|
+
### 🚀 Features
|
|
183
|
+
|
|
184
|
+
- show app skeleton while loading and accessibility fixes ([4f96e2472](https://github.com/powerhouse-inc/powerhouse/commit/4f96e2472))
|
|
185
|
+
|
|
186
|
+
### ❤️ Thank You
|
|
187
|
+
|
|
188
|
+
- acaldas
|
|
189
|
+
|
|
190
|
+
## 2.5.0-dev.16 (2025-06-11)
|
|
64
191
|
|
|
65
192
|
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
66
193
|
|
|
194
|
+
## 2.5.0-dev.15 (2025-06-11)
|
|
195
|
+
|
|
196
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
197
|
+
|
|
198
|
+
## 2.5.0-dev.14 (2025-06-10)
|
|
199
|
+
|
|
200
|
+
### 🚀 Features
|
|
201
|
+
|
|
202
|
+
- improved analytics frontend integration ([269aed50c](https://github.com/powerhouse-inc/powerhouse/commit/269aed50c))
|
|
203
|
+
|
|
204
|
+
### ❤️ Thank You
|
|
205
|
+
|
|
206
|
+
- acaldas @acaldas
|
|
207
|
+
|
|
208
|
+
## 2.5.0-dev.13 (2025-06-10)
|
|
209
|
+
|
|
210
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
211
|
+
|
|
212
|
+
## 2.5.0-dev.12 (2025-06-10)
|
|
213
|
+
|
|
214
|
+
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
215
|
+
|
|
216
|
+
## 2.5.0-dev.11 (2025-06-07)
|
|
217
|
+
|
|
218
|
+
### 🚀 Features
|
|
219
|
+
|
|
220
|
+
- **connect:** updated diff-analyzer processor ([ce5d1219f](https://github.com/powerhouse-inc/powerhouse/commit/ce5d1219f))
|
|
221
|
+
|
|
222
|
+
### ❤️ Thank You
|
|
223
|
+
|
|
224
|
+
- acaldas
|
|
225
|
+
|
|
226
|
+
## 2.5.0-dev.10 (2025-06-06)
|
|
227
|
+
|
|
228
|
+
### 🚀 Features
|
|
229
|
+
|
|
230
|
+
- run analytics db on web worker ([ecf79575f](https://github.com/powerhouse-inc/powerhouse/commit/ecf79575f))
|
|
231
|
+
|
|
232
|
+
### ❤️ Thank You
|
|
233
|
+
|
|
234
|
+
- acaldas
|
|
235
|
+
|
|
67
236
|
## 2.5.0-dev.9 (2025-06-05)
|
|
68
237
|
|
|
69
238
|
This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Environment Setup Guide
|
|
2
2
|
|
|
3
3
|
## Introduction
|
|
4
4
|
Powerhouse is a powerful platform that helps you manage and deploy your applications efficiently.
|
|
@@ -345,10 +345,14 @@ Up next is the configurations of your services.
|
|
|
345
345
|
|
|
346
346
|
### Service Configuration
|
|
347
347
|
|
|
348
|
-
Next, run
|
|
348
|
+
Next, run
|
|
349
|
+
```bash
|
|
350
|
+
ph service setup
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
Follow the interactive prompts. This command installs the Powerhouse services (Connect and Switchboard) and guides you through their configuration.
|
|
349
354
|
|
|
350
|
-
:::info
|
|
351
|
-
**What does `ph service setup` do?**
|
|
355
|
+
:::info **What does `ph service setup` do?**
|
|
352
356
|
The script takes care of all the necessary service configuration automatically.
|
|
353
357
|
It installs and configures **Nginx** as a reverse proxy, sets up SSL certificates, and configures the proxy settings for optimal performance.
|
|
354
358
|
It also installs **PM2** for process management and starts your services with the appropriate configuration based on your SSL choice.
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# Configure Your Environment
|
|
2
|
+
|
|
3
|
+
After successfully setting up your server and installing the Powerhouse services using the `ph service setup` command as described in the [Setup Environment](./03-SetupEnvironment.md) guide, the next crucial step is to configure your environment. Proper configuration ensures that your Powerhouse Connect and Switchboard instances behave exactly as you need them to for your specific application.
|
|
4
|
+
|
|
5
|
+
Powerhouse offers two primary methods for configuration:
|
|
6
|
+
|
|
7
|
+
1. **Environment Variables**: Using a `.env` file in your project root. This is a straightforward way to set configuration values.
|
|
8
|
+
2. **Configuration Files**: For more complex configurations, some services might use a JSON configuration file (e.g., `powerhouse.config.json`).
|
|
9
|
+
|
|
10
|
+
:::warning
|
|
11
|
+
A key principle to remember is that **environment variables will always override values set in configuration files**. This allows for flexible setups, where you can have default configurations in a file and override them for different environments (development, staging, production) using environment variables.
|
|
12
|
+
:::
|
|
13
|
+
|
|
14
|
+
This guide will walk you through both methods and provide details on common configuration options, including setting up authorization.
|
|
15
|
+
|
|
16
|
+
## Using Environment Variables
|
|
17
|
+
|
|
18
|
+
The most common way to configure Powerhouse services is through environment variables. You can place these variables in a `.env` file at the root of your project directory. When you run `ph service start` or `ph service restart`, these variables are loaded into the environment of your running services.
|
|
19
|
+
|
|
20
|
+
### How to Create and Edit Your `.env` File
|
|
21
|
+
|
|
22
|
+
If you're on your cloud server, you can create and edit the `.env` file directly:
|
|
23
|
+
|
|
24
|
+
1. Navigate to your project directory: `cd <your-project-name>`
|
|
25
|
+
2. Open the `.env` file with a text editor like `vim` or `nano`:
|
|
26
|
+
```bash
|
|
27
|
+
vim .env
|
|
28
|
+
```
|
|
29
|
+
3. Add your configuration variables, one per line, in the `KEY="VALUE"` format.
|
|
30
|
+
```env
|
|
31
|
+
# Example for Connect
|
|
32
|
+
PH_CONNECT_STUDIO_MODE="true"
|
|
33
|
+
PH_CONNECT_DISABLE_ADD_DRIVE="true"
|
|
34
|
+
```
|
|
35
|
+
4. Save the file and exit the editor (in `vim`, press `Esc`, then type `:wq` and press `Enter`).
|
|
36
|
+
5. For the changes to take effect, you must restart the Powerhouse services:
|
|
37
|
+
```bash
|
|
38
|
+
ph service restart
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Common Environment Variables for Connect
|
|
42
|
+
|
|
43
|
+
The Powerhouse Connect application has a wide range of available environment variables to toggle features and change its behavior. Below is a list of some variables you can configure.
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# build arguments
|
|
47
|
+
BASE_PATH="/" # vite base path
|
|
48
|
+
BASE_HREF="./" # electron-forge base href
|
|
49
|
+
PH_CONNECT_APP_REQUIRES_HARD_REFRESH="true"
|
|
50
|
+
SENTRY_AUTH_TOKEN=""
|
|
51
|
+
SENTRY_ORG=""
|
|
52
|
+
SENTRY_PROJECT=""
|
|
53
|
+
|
|
54
|
+
# environment variables
|
|
55
|
+
LOG_LEVEL="info"
|
|
56
|
+
|
|
57
|
+
## app configuration & feature flags
|
|
58
|
+
PH_CONNECT_DISABLE_ADD_DRIVE="false"
|
|
59
|
+
PH_CONNECT_WARN_OUTDATED_APP="false"
|
|
60
|
+
PH_CONNECT_STUDIO_MODE="false"
|
|
61
|
+
PH_CONNECT_ROUTER_BASENAME="/"
|
|
62
|
+
PH_CONNECT_DEFAULT_DRIVES_URL=""
|
|
63
|
+
PH_CONNECT_ENABLED_EDITORS=""
|
|
64
|
+
PH_CONNECT_DISABLE_ADD_PUBLIC_DRIVES="false"
|
|
65
|
+
PH_CONNECT_SEARCH_BAR_ENABLED="false"
|
|
66
|
+
PH_CONNECT_DISABLE_ADD_CLOUD_DRIVES="false"
|
|
67
|
+
PH_CONNECT_DISABLE_ADD_LOCAL_DRIVES="false"
|
|
68
|
+
PH_CONNECT_DISABLE_DELETE_PUBLIC_DRIVES="false"
|
|
69
|
+
PH_CONNECT_DISABLE_DELETE_CLOUD_DRIVES="false"
|
|
70
|
+
PH_CONNECT_DISABLE_DELETE_LOCAL_DRIVES="false"
|
|
71
|
+
PH_CONNECT_PUBLIC_DRIVES_ENABLED="true"
|
|
72
|
+
PH_CONNECT_CLOUD_DRIVES_ENABLED="true"
|
|
73
|
+
PH_CONNECT_LOCAL_DRIVES_ENABLED="true"
|
|
74
|
+
PH_CONNECT_ARBITRUM_ALLOW_LIST=""
|
|
75
|
+
PH_CONNECT_RWA_ALLOW_LIST=""
|
|
76
|
+
PH_CONNECT_HIDE_DOCUMENT_MODEL_SELECTION_SETTINGS="true"
|
|
77
|
+
|
|
78
|
+
PH_CONNECT_RENOWN_URL="https://auth.renown.id"
|
|
79
|
+
PH_CONNECT_RENOWN_NETWORK_ID="eip155"
|
|
80
|
+
PH_CONNECT_RENOWN_CHAIN_ID=1
|
|
81
|
+
PH_CONNECT_DISABLED_EDITORS="powerhouse/document-drive"
|
|
82
|
+
|
|
83
|
+
PH_CONNECT_ANALYTICS_DATABASE_NAME=""
|
|
84
|
+
PH_CONNECT_ANALYTICS_DATABASE_WORKER_DISABLED="false"
|
|
85
|
+
|
|
86
|
+
## error tracking
|
|
87
|
+
PH_CONNECT_SENTRY_DSN=""
|
|
88
|
+
PH_CONNECT_SENTRY_PROJECT=""
|
|
89
|
+
PH_CONNECT_SENTRY_ENV="prod"
|
|
90
|
+
PH_CONNECT_SENTRY_TRACING_ENABLED="false"
|
|
91
|
+
|
|
92
|
+
## analytics
|
|
93
|
+
PH_CONNECT_GA_TRACKING_ID=
|
|
94
|
+
|
|
95
|
+
FILE_UPLOAD_OPERATIONS_CHUNK_SIZE="50"
|
|
96
|
+
PH_CONNECT_VERSION_CHECK_INTERVAL="3600000"
|
|
97
|
+
PH_CONNECT_CLI_VERSION=""
|
|
98
|
+
|
|
99
|
+
## set during build
|
|
100
|
+
APP_VERSION=""
|
|
101
|
+
SENTRY_RELEASE=""
|
|
102
|
+
```
|
|
103
|
+
You can find the most up-to-date list of variables in the source repository: [https://github.com/powerhouse-inc/powerhouse/blob/main/apps/connect/.env](https://github.com/powerhouse-inc/powerhouse/blob/main/apps/connect/.env)
|
|
104
|
+
|
|
105
|
+
## Using a Configuration File
|
|
106
|
+
|
|
107
|
+
For services like the Switchboard, you can also use a `powerhouse.config.json` file for more structured configuration, especially for features like authorization.
|
|
108
|
+
|
|
109
|
+
### Configuring Authorization
|
|
110
|
+
|
|
111
|
+
A critical aspect of your environment configuration is setting up authorization to control who can access your services and what they can do. As detailed in our dedicated [Switchboard Authorization](/academy/MasteryTrack/BuildingUserExperiences/Authorization/Authorization) guide, you can manage access using a role-based system.
|
|
112
|
+
|
|
113
|
+
Here's a quick overview of how you can configure authorization:
|
|
114
|
+
|
|
115
|
+
#### Via Environment Variables
|
|
116
|
+
|
|
117
|
+
You can set the roles directly in your `.env` file. This is quick and easy for simple allowlists.
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Required: Enable/disable authentication
|
|
121
|
+
AUTH_ENABLED=true
|
|
122
|
+
|
|
123
|
+
# Optional: Comma-separated list of guest wallet addresses
|
|
124
|
+
GUESTS="0x789...,0xabc..."
|
|
125
|
+
|
|
126
|
+
# Optional: Comma-separated list of regular user wallet addresses
|
|
127
|
+
USERS="0xdef...,0xghi..."
|
|
128
|
+
|
|
129
|
+
# Optional: Comma-separated list of admin wallet addresses
|
|
130
|
+
ADMINS="0x123...,0x456..."
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
#### Via `powerhouse.config.json`
|
|
134
|
+
|
|
135
|
+
For a cleaner setup, especially with longer lists of addresses, you can define them in `powerhouse.config.json` in your project root.
|
|
136
|
+
|
|
137
|
+
```json
|
|
138
|
+
{
|
|
139
|
+
"switchboard": {
|
|
140
|
+
"auth": {
|
|
141
|
+
"enabled": true,
|
|
142
|
+
"guests": ["0x789...", "0xabc..."],
|
|
143
|
+
"users": ["0xdef...", "0xghi..."],
|
|
144
|
+
"admins": ["0x123...", "0x456..."]
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Remember, if you define `AUTH_ENABLED=false` as an environment variable, it will override the `enabled: true` setting in your JSON file.
|
|
151
|
+
|
|
152
|
+
For a complete understanding of how roles (Guest, User, Admin) work and the permissions they have, please refer to the full [Authorization guide](/academy/MasteryTrack/BuildingUserExperiences/Authorization/Authorization).
|
|
153
|
+
|
|
154
|
+
## Applying Your Changes
|
|
155
|
+
|
|
156
|
+
Regardless of which method you use to update your configuration, the changes will not be applied until you restart your services.
|
|
157
|
+
|
|
158
|
+
Use the following command to do so:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
ph service restart
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
This will stop and then start the Connect and Switchboard services, ensuring they load the new configuration. You can check the status with `ph service status`.
|
|
165
|
+
|
|
166
|
+
## Summary
|
|
167
|
+
|
|
168
|
+
Configuring your environment is a key step to tailor the Powerhouse platform to your needs. By using a combination of `.env` files for simple key-value settings and `powerhouse.config.json` for more structured data, you have fine-grained control over all features, from the UI of the Connect app to the security and authorization on your Switchboard.
|