-
Notifications
You must be signed in to change notification settings - Fork 0
rework-add-db #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Nityam573
wants to merge
3
commits into
main
Choose a base branch
from
fix/database-integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Server Configuration | ||
| PORT=8080 | ||
| HOST_URL=https://your-domain.com # Your production domain or ngrok URL for development | ||
|
|
||
| # Verifier Configuration | ||
| #⚠️ CRITICAL: IMMUTABLE VALUES - DO NOT CHANGE AFTER FIRST USE (NULLIFIER_ID & VERIFIER_DID) | ||
| # These values CANNOT be changed once users start verifying, as changing them | ||
| # will result in different nullifier IDs and DIDs for the same users. | ||
| VERIFIER_DID=your_verifier_did_here # Download the Billions app and Login into it.Copy the DID created for your account to use as the Verifier. You can find that in settings. | ||
| USE_CASE=POU # Options: POH, POU, POVH | ||
| NULLIFIER_SESSION_ID=your_nullifier_session_id # Must be a positive BigInt for the proof request. | ||
|
|
||
| #Use case selection | ||
| # POH (Proof of Humanity): Verify that the user is a real human via `Human` Credential | ||
| # POU (Proof of Uniqueness): Verify that the user is unique (anti-Sybil) via `Verified Human` credential | ||
| # POVH (Proof of Verified Humanity): Verify that the user is a real verified human via `Verified Human` Credential | ||
|
|
||
| USE_CASE=POVH #Options: 'POH', 'POU' | ||
|
|
||
| # Security Configuration (Production) | ||
| ALLOWED_ORIGINS=https://your-frontend-domain.com,https://your-mobile-app-domain.com # Comma-separated list | ||
| NODE_ENV=production # Set to 'production' for strict CORS | ||
| LOG_LEVEL=info # Options: error, warn, info, debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| .env | ||
| node_modules/ | ||
| logs/ |
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
Integration-for-verifiers (Billions Wallet)/ecosystem.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| module.exports = { | ||
| apps: [{ | ||
| name: 'billions-verifier', | ||
| script: 'src/index.js', | ||
| instances: 1, | ||
| exec_mode: 'fork', | ||
|
|
||
| // Environment configuration | ||
| env: { | ||
| NODE_ENV: 'development', | ||
| PORT: 8080 | ||
| }, | ||
| env_production: { | ||
| NODE_ENV: 'production', | ||
| PORT: 8080 | ||
| }, | ||
|
|
||
| // Process management | ||
| max_memory_restart: '1G', | ||
| min_uptime: '10s', | ||
| max_restarts: 10, | ||
| restart_delay: 4000, | ||
|
|
||
| // Logging | ||
| log_file: 'logs/pm2-combined.log', | ||
| out_file: 'logs/pm2-out.log', | ||
| error_file: 'logs/pm2-error.log', | ||
| log_date_format: 'YYYY-MM-DD HH:mm:ss Z', | ||
| merge_logs: true, | ||
|
|
||
| // Monitoring | ||
| source_map_support: true, | ||
| instance_var: 'INSTANCE_ID', | ||
|
|
||
| // Health monitoring | ||
| watch: false, // Set to true for development auto-restart | ||
| ignore_watch: ['node_modules', 'logs', '.git'], | ||
|
|
||
| // Production optimizations | ||
| node_args: '--max-old-space-size=1024' | ||
| }], | ||
|
|
||
| // Deployment configuration | ||
| deploy: { | ||
| production: { | ||
| user: 'deploy', | ||
| host: ['your-server.com'], | ||
| ref: 'origin/main', | ||
| repo: 'git@github.com:your-username/billions-verifier.git', | ||
| path: '/var/www/billions-verifier', | ||
| 'post-deploy': 'npm install && pm2 reload ecosystem.config.js --env production', | ||
| 'pre-setup': 'apt-get install git -y' | ||
| } | ||
| } | ||
| }; |
19 changes: 0 additions & 19 deletions
19
Integration-for-verifiers (Billions Wallet)/js/.env.example
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete it