Skip to content

Commit c845a48

Browse files
Merge pull request #60 from HORNET-Storage/feature/relay-icon-upload-and-dynamic-urls
Update CodeQL actions to v3
2 parents d668abf + a7e321e commit c845a48

File tree

17 files changed

+833
-283
lines changed

17 files changed

+833
-283
lines changed

.env.development

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ REACT_APP_DEMO_MODE=false
55
REACT_APP_BASENAME=
66

77
# Nostr relay configuration for profile fetching
8-
REACT_APP_OWN_RELAY_URL=ws://localhost:7000
9-
REACT_APP_NOSTR_RELAY_URLS=wss://relay.damus.io,wss://relay.nostr.band,wss://relay.snort.social,wss://vault.iris.to
8+
REACT_APP_OWN_RELAY_URL=ws://localhost:9001
9+
# REACT_APP_NOSTR_RELAY_URLS=wss://your-relay1.com,wss://your-relay2.com,wss://your-relay3.com
1010

1111
# More info https://create-react-app.dev/docs/advanced-configuration
1212
ESLINT_NO_DEV_ERRORS=true

.env.production

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Production Environment Configuration
2+
# Panel integrated into relay server
3+
4+
# Demo mode (set to false for production)
5+
REACT_APP_DEMO_MODE=false
6+
7+
# Direct wallet service access
8+
REACT_APP_WALLET_BASE_URL=http://localhost:9003
9+
10+
# Router configuration (empty since served from relay server root)
11+
REACT_APP_BASENAME=
12+
PUBLIC_URL=
13+
14+
# Asset serving configuration (optional - adjust for your domain)
15+
# REACT_APP_ASSETS_BUCKET=https://your-domain.com
16+
17+
# Nostr relay configuration for profile fetching
18+
REACT_APP_OWN_RELAY_URL=ws://localhost:9001
19+
# REACT_APP_NOSTR_RELAY_URLS=wss://your-relay1.com,wss://your-relay2.com
20+
21+
# Development optimizations
22+
ESLINT_NO_DEV_ERRORS=true
23+
TSC_COMPILE_ON_ERROR=true

.env.production.example

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
# Production Environment Configuration Example
22
# Copy this file to .env.production and update with your actual values
33

4-
# API Base URLs - Update these to your actual backend URLs
5-
REACT_APP_BASE_URL=https://your-domain.com/panel
6-
REACT_APP_WALLET_BASE_URL=https://your-domain.com/wallet
7-
8-
# Asset serving configuration
9-
REACT_APP_ASSETS_BUCKET=https://your-domain.com
10-
11-
# Demo mode (set to true for demo, false for production)
4+
# Demo mode (set to false for production)
125
REACT_APP_DEMO_MODE=false
136

14-
# Router basename - where your React app will be served from
15-
# Use empty string for root path, or /admin, /dashboard, etc.
16-
REACT_APP_BASENAME=/front
7+
# Router configuration for /panel/ path (served through nginx)
8+
REACT_APP_BASENAME=/panel
9+
PUBLIC_URL=/panel
10+
11+
# Asset serving configuration (optional - adjust for your domain)
12+
# REACT_APP_ASSETS_BUCKET=https://your-domain.com
1713

18-
# Public URL for static assets - should match REACT_APP_BASENAME
19-
PUBLIC_URL=/front
14+
# Nostr relay configuration for profile fetching
15+
# REACT_APP_OWN_RELAY_URL= # ✅ Auto-detected from current domain
16+
# REACT_APP_NOSTR_RELAY_URLS=wss://your-relay1.com,wss://your-relay2.com
2017

21-
# More info https://create-react-app.dev/docs/advanced-configuration
18+
# Development optimizations
2219
ESLINT_NO_DEV_ERRORS=true
2320
TSC_COMPILE_ON_ERROR=true

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
45+
uses: github/codeql-action/init@v3
4646
with:
4747
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -56,7 +56,7 @@ jobs:
5656
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below)
5858
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v2
59+
uses: github/codeql-action/autobuild@v3
6060

6161
# ℹ️ Command-line programs to run using the OS shell.
6262
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -69,4 +69,4 @@ jobs:
6969
# ./location_of_script_within_repo/buildscript.sh
7070

7171
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@v2
72+
uses: github/codeql-action/analyze@v3

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
.env.development.local
2323
.env.test.local
2424
.env.production.local
25-
.env.production
25+
2626

2727
npm-debug.log*
2828
yarn-debug.log*

0 commit comments

Comments
 (0)