Skip to content
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

ouyeel update #147

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
tmp
docker/data
docker/redis
/log/*
!/log/.keep
.DS_Store
TAGS
25 changes: 18 additions & 7 deletions .env
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
# override items in .env.local(.env.{env}.local) if you need

# app config

# set log level, use "info" for production by default, use "debug" for development
# RAILS_LOG_LEVEL="info"

# database config
# "db" for docker inside database, "host.docker.internal" for host database(only work for mac and windows for docker 18.03+)
DB_HOST="db"
DB_PORT=5432
DB_POOL=64
DB_POOL=25
DB_USERNAME="postgres"
DB_PASSWORD="postgres"
DB_NAME_DEV="re-birth_development"
Expand All @@ -33,12 +28,28 @@ SECRET_KEY_BASE="dee66a8ef3281bc6bd74a5637ede4d846c455df93ca0d6c098da1d52b65dda8

# cita config
# set default to localhost
CITA_URL="http://localhost:1337/"
CITA_URL="http://localhost:1337/" #需部署cita-cli 并 switch --algorithm sm2
CITA_WS_PORT="4337"
# "ws" or "wss", if blank, http => ws, https => wss
CITA_WS_PROTOCOL=""
PUB_CITA_URL="http://192.168.1.90:1337/"

# block config
SAVE_BLOCKS="true" # true or false, only "false" will not save blocks.

LOOP_INTERVAL="1"

# PUBLIC_KEY="-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMxr8bRMGBu8Y1IguTG/6AIA6m\nHeccdKfbe4kZHL1pNEcF52uGyCREKEAq/y1Ewao8PTQT5CZEdCSoQkKvOyywlRuD\nM6ssZwPAk9Angxd9xxZlVQyu/fDSi30YtUAJQ+q94eNj6YuSo2WBQHXxO9FtSloj\ntCLZSkmS9hF7r6CiRwIDAQAB\n-----END PUBLIC KEY-----\n"

PUBLIC_KEY="-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCZbFhEhbZoL9YeFX5qwIAT4WQmKKi6rxb3+53CYoOsPvjW0M3dlV8oEedzi79DMROONJ3usfp83XHzX2iUuVl5GXqK/c/1PIdh5DMWILLb8qlK9MtyYVRnC0I2xI81McnygLbNZAdJ4+pJvjoq3ugZ/COqK4JP0xxOnh/J4cerOwIDAQAB\n-----END PUBLIC KEY-----"

# [possible values: secp256k1, ed25519, sm2]
ALGORITHM="sm2"
CITA_CLI_PATH="bin/cita-cli"
#逗号分割组,冒号分割地址私钥
STORAGE_AUTH_PUBKEYS="0x2ed5b38d63d3556af46a12ac01f8c022571647f934e764cf0f51bc662dcb0dc8d52d5aac727de00b9710df6a87746770260ce4b36c17c49d68914462d85d7e18"
STORAGE_FRONT_URL="http://192.168.2.23:10070/dataEvidence/evidence/data/save"
STORAGE_CHAIN_ID="bc002"
STORAGE_CALLBACK_URL="http://192.168.1.13:8888/api/storages/callback/"
STORAGE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nMIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAIxIb4ak1pOzVQRfgiYuAjioVk2sFBdztpAv81qCGTWjrsnEBTG89oDFMTOGyHupSaHbCmRC5pWSnyPERR6k7tbZpShLYx42oR8IJ001SbAfki7aRfUNLWeY2ox20zdC/c6ZLF1plnhfwP1jfB4dH3PUkq+XTXWdzyxzRX/pBAYDAgMBAAECgYEAiaeGsJPN7295DGp/9uEM0vX0ghFKQd0NFx3GaVjiTe1JVbmg8zaemKtnZU1sK1Rp6YZcAxhW1gzjViCBRtnHdtSgPh8SGeaGsG/EC4p7PJxvrUO/P7C0fsuG5gyQz0IC1NZVovQeJGujB8P7M9zw7Ea32waTVd4uYv4vm+ta0pECQQDuexnixOG0bWzqYZf335w0JHfMBIti5K/PBgMGLhu5q3yrbkH0iGW2XI+wUIfl2ebkRNsczqgO10PV2lqaqg6JAkEAlpac+Jof1Byy7jhPNuH+lX6MB5wLoJwqP2hjg2Yi5MOCmNe14ndh3j9PY+Kbld0kSxnixI1lDY9njkTvDVmtKwJBANOxBI5u1Ce0Rs1bamnG3cLPaGP62LwlYgZ0QLT4svXCyvzl97gYZ6lUStxo7+lR3wpcMOBGdZoO7hFkLa9DK3kCQA2Ka4D7MuN61SgQjibsOV0t7N9+S5lckXv0Igadt4OEhQjDVMqRW46FeNkNdloKcYoDQN3VrQGEJJapYil8J9MCQQDbaOybrR/paRnzSRqc9OL5BEnCO0kgw4/u+5+wkKU5i8HwD46wt3jneLx3k1+547X029oiNx/eieSMz7f/d1W1\n-----END PRIVATE KEY-----"
STORAGE_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCMSG+GpNaTs1UEX4ImLgI4qFZNrBQXc7aQL/Naghk1o67JxAUxvPaAxTEzhsh7qUmh2wpkQuaVkp8jxEUepO7W2aUoS2MeNqEfCCdNNUmwH5Iu2kX1DS1nmNqMdtM3Qv3OmSxdaZZ4X8D9Y3weHR9z1JKvl011nc8sc0V/6QQGAwIDAQAB\n-----END PUBLIC KEY-----"
2 changes: 1 addition & 1 deletion .env.test
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
DB_HOST="localhost"
# cita config
CITA_URL="https://testnet.citahub.com"
CITA_URL="http://www.cita.com/"
Empty file modified .env.test.local.travis
100644 → 100755
Empty file.
7 changes: 6 additions & 1 deletion .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
/tmp/*
!/tmp/.keep
!/tmp/pids/
/tmp/pids/*
!/tmp/pids/.keep

# Ignore uploaded files in development
/storage/*
Expand Down Expand Up @@ -45,3 +48,5 @@ docker/redis
config/customs/*.yml
db/migrate/*_create_customs_*
app/models/customs/*
.DS_Store
TAGS
Empty file modified .pryrc
100644 → 100755
Empty file.
Empty file modified .rspec
100644 → 100755
Empty file.
Empty file modified .rubocop.yml
100644 → 100755
Empty file.
Empty file modified .ruby-gemset.sample
100644 → 100755
Empty file.
Empty file modified .ruby-version
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions .travis.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ before_script:
- psql -c 'create database "re-birth_test";' -U postgres
- cp .env.test.local.travis .env.test.local
# run code quality audit
- gem install code_quality
- code_quality security_audit bundler_audit_options="--ignore CVE-2020-8164 CVE-2020-8166 CVE-2020-15169 CVE-2020-5267 CVE-2020-8167 CVE-2020-8162 CVE-2020-8165 CVE-2020-26247"
- gem install code_quality --no-ri --no-rdoc
- code_quality security_audit
- code_quality quality_audit fail_fast=false generate_index=true skip_lowest_score=89 rubocop_max_offenses=400

script:
Expand Down
Empty file modified .yardopts
100644 → 100755
Empty file.
Loading