diff --git a/config/configuration.yml.example b/config/configuration.yml.example index 52d9afcc..a5657bbc 100644 --- a/config/configuration.yml.example +++ b/config/configuration.yml.example @@ -1,105 +1,153 @@ -default: &default - # 用户登入的时候设置/登出的时候清空 - autologin_cookie_name: 'autologin_gitlink' - platform_url: 'http://localhost:3000' - sign_key: '' - - #附件上传路径 - attachment_folder: '/tmp' - - # webssh相关 - tomcat_webssh: 'https://testwebssh.gitlink.org.cn' - webssh_username: '' - webssh_password: '' - - # git服务地址 - git_address_ip: '' - - #新版git服务地址 - git_address_domain: '' - - # git管理员用户名问题, 适用于git客户端的操作 - git_username: '' - git_password: '' - - ucloud: - public_key: '' - private_key: '' - public_bucket: '' - public_bucket_host: '' - public_cdn_host: '' +defaults: &defaults +# platform_url: 'http://47.96.87.25:81' + platform_url: 'https://testforgeplus.trustie.net' + admin_statistics_url: 'https://test-statistics.trustie.net/admin/index' + aliyun_vod: + access_key_id: 'test' + access_key_secret: 'test' + base_url: 'http://vod.cn-shanghai.aliyuncs.com' + cate_id: '-1' + callback_url: 'http://47.96.87.25:48080/api/callbacks/aliyun_vod.json' + signature_key: 'test12345678' + wechat: + appid: '' + secret: '' + weapp: + appid: 'wx2402d86a6b534f77' + secret: 'ae30b06b66cefbb11f0b05e94385ca87' oauth: qq: - appid: 'test' - secret: 'test123456' + appid: '101508858' + secret: '9fbd7cabe2baab33ddf9619de552db0a' wechat: - appid: 'test' - secret: 'test' + appid: 'wx6b119e2d829c13fa' + secret: '0244ac003ea4d01fc768245839a97037' scope: 'snsapi_login' base_url: 'https://api.weixin.qq.com' - aliyun_vod: - access_key_id: 'test' - access_key_secret: 'test' - base_url: 'http://vod.cn-shanghai.aliyuncs.com' - cate_id: '-1' - callback_url: 'callback_url' - signature_key: 'test12345678' - educoder: + educoder: client_id: 'e9ce4d5ba1698d6f7d01d8ee2959776c7a6d743ebe94da2341e288fd2fbf60aa' client_secret: '6ff84dd75eddd859c5bd0e7a791b58bc5ad1ba4fbb30bc9db37cb0baf9f33012' base_url: 'https://test-data.educoder.net' redirect_uri: 'https://testforgeplus.trustie.net/api/auth/educoder/callback' - + mulan: + client_id: 'kK36Mg9pNFa2Car8lXuI' + client_secret: 'XMvb4DL7EaQ8G7FcUi64R08d2Bn3XfJf' + base_url: 'https://www.oschina.net' + redirect_uri: 'https://code.mulanos.cn/api/auth/mulanoss/callback' + github: + appid: 'e5bdd25c0a5e4d1fffdc' + secret: '88429c898522c60560250031721328180d6a3ccf' + gitee: + appid: '1cdbd111073abfaed4a6ab29d888d4583f646a8b4ad1eb5b60fbe03cdb2ac24f' + secret: 'd8d79434805c01f095d10d43432e880013cf95d7d6bf3ff4ccfe33a1157b654a' +# scope: 'snsapi_login' +# base_url: 'https://api.weixin.qq.com' + oauth_educoder: + access_key_secret: '0ea0c9926b0c80f285c393725ff65614' + callback_url_host: 'testforgeplus.trustie.net' + chain_base: "http://106.54.84.172:8000" + ci_db_server_trustie: + adapter: mysql2 + host: "106.75.110.152" + port: "43306" + database: trustie_drone + pool: 5 + username: "root" + password: "R?X:FLI6u,7;" + trustie_drone: + ip_num: "113.31.153.2" + secret: "Dron_123123'" + client_id: '2f445743-6d32-477c-963c-a31240c2927a' + admin_application_id: 184 + admin_token: 'QcOBD2DMexbGXaYj9Toou7X13PEOHMtB' + email: 'drone@admin.com' + avatar_url: 'http://testgitea2.trustie.net/user/avatar/root/-1' gitea: - access_key_id: '' - access_key_secret: '' - domain: 'https://testgit.trustie.net' + access_key_id: 'root' + access_key_secret: '_Trustie_10010' + domain: 'https://testgitea2.trustie.net' base_url: '/api/v1' accelerator: - access_key_id: '' - access_key_secret: '' - access_admin_uid: 1 - domain: 'https://testgit.trustie.net' + access_key_id: 'testforgeroot' + access_key_secret: 'testforge@root123' + access_admin_uid: 44619 + domain: 'https://mirror.trustie.net' base_url: '/api/v1' - blockchain: - api_url: "blockchain api url" - - notice: - platform: '' - write_domain: '' - read_domain: '' - base_url: '' - - trace: - domain: '' - base_url: '' - + notice: + platform: 'gitlink' + write_domain: 'http://106.75.31.211:58082' + read_domain: 'http://106.75.31.211:58080' + base_url: '/gns' forum: - domain: '' + domain: 'https://forum.trustie.net/' base_url: '/api' + trace: + domain: 'http://153.35.182.228:8010' + base_url: '/v1' + ci_db_server: + adapter: mysql2 + database: drone + port: 43306 + host: 106.75.110.152 + username: root + password: "R?X:FLI6u,7;" + encoding: utf8 +development: + <<: *defaults + #同步到trustie的token和url + sync_token: "34c82f51e0b699d9d16d70fd6497c9b1e4821d6ea3e872558a6537a091076b8e" + sync_url: "http://127.0.0.1:3000" + +test: + <<: *defaults production: - <<: *default - # 中间层地址 + <<: *defaults + educoder: + main_site: http://test-newweb.educoder.net + token: hriEn3UwXfJs3PmyXnSH + base_url: api/sources + #同步到trustie的token和url + sync_token: "34c82f51e0b699d9d16d70fd6497c9b1e4821d6ea3e872558a6537a091076b8e" + sync_url: "https://ucloudtest.trustie.net" - cloud_bridge: '' - cloud_tomcat_php: '' - bridge_secret_key: '' - cookie_domain: '.gitlink.org.cn' - - attachment_folder: '' - host_name: 'https://testeduplus2.gitlink.org.cn' - old_edu_host: 'http://testbdweb.gitlink.org.cn' - -development: - <<: *default - - cloud_bridge: '' - cloud_tomcat_php: '' - host_name: '' - old_edu_host: '' -test: - <<: *default - cloud_tomcat_php: 'http://10.9.63.225' - host_name: 'https://testeduplus2.gitlink.org.cn' - old_edu_host: 'http://testbdweb.gitlink.org.cn' + aliyun_vod: + access_key_id: 'LTAI4kRL1DxQPdM2' + access_key_secret: 'yiz68rxE6imziBTITggWcOeSqjUeUu' + cate_id: '1000068305' + base_url: 'http://vod.cn-shanghai.aliyuncs.com' + callback_url: 'https://pre-newweb.educoder.net/api/callbacks/aliyun_vod.json' + signature_key: 'sdgdfDGH14DHD5g465123' + wechat: + appid: 'wx0955caba88bc37eb' + secret: '6cc80eef2e0b6f43fbf6c8b96b812858' + gitea: + access_key_id: 'root' + access_key_secret: '_Trustie_10010' + domain: 'https://testgitea2.trustie.net' + base_url: '/api/v1' + accelerator: + access_key_id: 'testforgeroot' + access_key_secret: 'testforge@root123' + access_admin_uid: 44619 + domain: 'https://mirror.trustie.net' + base_url: '/api/v1' + notice: + platform: 'gitlink' + write_domain: 'http://106.75.31.211:58082' + read_domain: 'http://106.75.31.211:58080' + base_url: '/gns' + forum: + domain: 'https://forum.trustie.net/' + base_url: '/api' + trace: + domain: 'http://153.35.182.228:8010' + base_url: '/v1' + ci_db_server: + adapter: mysql2 + database: drone + port: 43306 + host: 106.75.110.152 + username: root + password: "R?X:FLI6u,7;" + encoding: utf8 \ No newline at end of file diff --git a/config/database.yml.example b/config/database.yml.example index 52f6538e..85816f85 100644 --- a/config/database.yml.example +++ b/config/database.yml.example @@ -1,61 +1,101 @@ -# MySQL. Versions 5.1.10 and up are supported. -# -# Install the MySQL driver -# gem install mysql2 -# -# Ensure the MySQL gem is defined in your Gemfile -# gem 'mysql2' -# -# And be sure to use new-style password hashing: -# https://dev.mysql.com/doc/refman/5.7/en/password-hashing.html -# -default: &default - adapter: mysql2 - host: 127.0.0.1 - encoding: utf8 - pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> - username: root - password: 123456 -# socket: /var/run/mysqld/mysqld.sock - gitea_server: - adapter: mysql2 - database: gitea_development - host: 127.0.0.1 - username: root - password: "123456" - encoding: utf8 - -development: - <<: *default - host: 127.0.0.1 - database: forge_development - -# Warning: The database defined as "test" will be erased and -# re-generated from your development database when you run "rake". -# Do not set this db to the same as development or production. -test: - <<: *default - database: forge_test - -# As with config/secrets.yml, you never want to store sensitive information, -# like your database password, in your source code. If your source code is -# ever seen by anyone, they now have access to your database. -# -# Instead, provide the password as a unix environment variable when you boot -# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database -# for a full rundown on how to provide these environment variables in a -# production deployment. -# -# On Heroku and other platform providers, you may have a full connection URL -# available as an environment variable. For example: -# -# DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase" -# -# You can use this database configuration with: -# -# production: -# url: <%= ENV['DATABASE_URL'] %> -# -production: - <<: *default - database: forge_production +# MySQL. Versions 5.1.10 and up are supported. +# +# Install the MySQL driver +# gem install mysql2 +# +# Ensure the MySQL gem is defined in your Gemfile +# gem 'mysql2' +# +# And be sure to use new-style password hashing: +# https://dev.mysql.com/doc/refman/5.7/en/password-hashing.html +# +default: &default +# adapter: mysql2 +# host: 127.0.0.1 +# encoding: utf8 +# pool: <%#= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> +# username: root +# password: 123456 +# socket: /var/run/mysqld/mysqld.sock +# gitea_server: +# adapter: mysql2 +# database: gitea_development +# host: 127.0.0.1 +# username: root +# password: "123456" +# encoding: utf8 + + adapter: mysql2 + database: testforgeplus +# database: test_osredmweb +# host: 10.9.70.25 + host: 127.0.0.1 + username: root +# password: "Trust_#%01" + password: "123456" + encoding: utf8mb4 + reconnect: true + ci_server_db: + adapter: mysql2 + database: drone + port: 43306 + host: 106.75.110.152 + username: root + password: "R?X:FLI6u,7;" + encoding: utf8 + gitea_server: + adapter: mysql2 + database: testgitea8 + port: 3306 +# host: 10.9.70.25 + host: 127.0.0.1 + username: root +# password: "Trust_#%01" + password: "123456" + encoding: utf8 + trustie_web_server: + adapter: mysql2 + database: trustietest + port: 3306 +# host: 10.9.70.25 + host: 127.0.0.1 + username: root +# password: "Trust_#%01" + password: "123456" + encoding: utf8 + + +development: + <<: *default +# host: 127.0.0.1 +# database: testforgeplus + +# Warning: The database defined as "test" will be erased and +# re-generated from your development database when you run "rake". +# Do not set this db to the same as development or production. +test: + <<: *default + database: forge_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: testforgeplus