Skip to content

Commit

Permalink
Adds Rocket.toml sample with configurable test/dev secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
nubis committed Jun 17, 2024
1 parent 059f952 commit ec38ba8
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- checkout
- run:
name: Creating config
command: cp Rocket.toml.example Rocket.toml
command: cp api/Rocket.toml.sample api/Rocket.toml
- run:
name: Wait for postgres
command: dockerize -wait tcp://localhost:5432 -timeout 1m
Expand Down
40 changes: 37 additions & 3 deletions api/Rocket.toml.sample
Original file line number Diff line number Diff line change
@@ -1,10 +1,44 @@
[global]
pwa_host="http://127.0.0.1:5173"
url = "http://localhost:8000"
address="0.0.0.0"
limits = { json = "50MB", graphql = "50MB" }
url = "http://localhost:8000"
database_uri = "postgres://asami:password@localhost/asami_development"
recaptcha_threshold=0.0

[global.x]
client_id="ZDJUaWk3OVpEU3JTaW12VFFBQmg6MTpjaQ"
#replace client_secret="the_global_x_secret"
redirect_uri = "http://127.0.0.1:8000/x_login"
bearer_token = "THE_BEARER_TOKEN"
asami_user_id = 1688942981573685248
crawl_cooldown_minutes = 10

[global.instagram]
client_id = "3539139656337829"
#replace client_secret = "THE_INSTAGRAM_SECRET"
redirect_uri = "https://127.0.0.1:8000/instagram_login"
crawl_cooldown_minutes = 10
#replace apify_key = "THE_APIFY_KEY"
verification_image_url = "https://asami.ams3.digitaloceanspaces.com/asami_instagram_white.png"
verification_caption = "I've joined asami.club, starting today some of mi posts will be sponsored. You can join too at https://asami.club"
verification_posts_count = 5

[global.recaptcha.v3]
html_key="6Ld9xO0iAAAAALIPY2yJGhshPe3nek4QQIHMgwq-"
secret_key="6Ld9xO0iAAAAAJWLojhvQ1zx94dzAJT9zFqqCwZq"
html_key="6LeEosgoAAAAAEvZM2fmutlMhYwFMtpFwo_3BIDX"
#replace secret_key="THE_RECAPTCHA_KEY"

[global.rsk]
chain_id=1337
start_sync_from_block=0
#replace wallet_mnemonic="correct horse batter staple"
admin_address="0xed4e67213c7a375af60893fe8e0852d0f7040913"
legacy_contract_address="unknown"
asami_contract_address="unknown"
doc_contract_address="unknown"
rpc_url="http://127.0.0.1:8545"
reorg_protection_padding="0x0000"
blockchain_sync_cooldown=0
gasless_rbtc_per_user="0x574FBDE6000" # 6e12 This is the contract's default so we're using it.
gasless_fee="0xDE0B6B3A7640000" # 1 DOC, this is a contract default.
admin_claim_trigger="0x2A5A058FC295EC000000" # When the admin has this many asami tokens, it will claim.

0 comments on commit ec38ba8

Please sign in to comment.