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
Update README to reflect current working deployment setup
- Document direct access deployment method that actually works
- Remove non-working reverse proxy configurations to prevent confusion
- Clarify that service URLs (wallet/relay) require explicit configuration
- Note that panel routing can be auto-detected but service URLs cannot
- Add note that reverse proxy setup still needs proper configuration example
TODO: Create working nginx configuration example for reverse proxy deployment
**✅ This setup works without any reverse proxy configuration!**
333
249
334
-
#### Step 4: Start Services
335
-
Ensure all backend services are running:
336
-
```bash
337
-
# Start in order of dependency
338
-
./relay-service &# Port 9001
339
-
./panel-api &# Port 9002
340
-
./wallet-service &# Port 9003
341
-
./media-moderation &# Port 8000 (optional)
342
-
```
250
+
> **Note**: Reverse proxy setup with nginx is possible but currently requires additional configuration. The direct access method above is the recommended approach for most users.
343
251
344
-
#### Step 5: Start Nginx
345
-
```bash
346
-
sudo systemctl start nginx
347
-
sudo systemctl enable nginx
348
-
```
349
-
350
-
### Scenario 2: Direct Access (Development/Testing)
351
-
352
-
#### Step 1: Build with Root Path
353
-
Update `.env.production`:
354
-
```env
355
-
REACT_APP_BASENAME=
356
-
PUBLIC_URL=
357
-
# Note: API URLs are now auto-detected, no need to specify them!
358
-
```
359
-
360
-
#### Step 2: Build and Serve
361
-
```bash
362
-
yarn build
363
-
# Serve the build folder (default port 3000)
364
-
serve -s build
365
-
```
366
-
367
-
#### Step 3: Configure CORS
368
-
Ensure your backend services accept requests from the frontend origin.
**Great news!** Thanks to dynamic URL detection, **no environment variable changes are needed** when using tunnels. The panel automatically adapts to any domain:
392
-
393
-
- ✅ `ngrok http 80` → Panel works immediately at `https://abc123.ngrok.io/front/`
394
-
- ✅ Custom domain tunnel → Panel works immediately
395
-
- ✅ Any hosting provider → Panel works immediately
396
-
397
-
**No rebuilds or environment changes required!**
398
252
399
253
## 🔧 Configuration Options
400
254
401
255
> **🚀 Major Improvement**: The panel now uses **dynamic URL detection** instead of hardcoded environment variables. This means **one build works everywhere** - no more environment-specific builds or complex URL configuration!
402
256
403
257
### REACT_APP_BASENAME
404
-
Controls where the React app is served from:
405
-
-`/front` - App accessible at `https://domain.com/front/`
406
-
-`/admin` - App accessible at `https://domain.com/admin/`
407
-
- `` (empty) - App accessible at `https://domain.com/`
258
+
Controls the React app's routing base path:
259
+
- `` (empty) - App accessible at `https://domain.com/` (recommended for direct access)
260
+
-`/panel` - App accessible at `https://domain.com/panel/` (for reverse proxy setups)
261
+
262
+
**Note**: For the current working setup, leave this empty (`REACT_APP_BASENAME=`) since the panel is served from the root path.
408
263
409
264
### Service URLs
410
-
**🎯 Auto-Detection**: Service URLs are now automatically detected in production:
0 commit comments