|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +# Set environment variables that will be used by grunt. |
| 4 | +# The idea here is to still conform to 12factor.net/config even though this is |
| 5 | +# a client side app and environment variables are not accessible. These |
| 6 | +# values will be copied by grunt into the config.js |
| 7 | + |
| 8 | +# For prod deploy, change to 'NODE_ENV=production' |
| 9 | +export NODE_ENV=development |
| 10 | + |
| 11 | +# the HTTP server port |
| 12 | +export PORT=3000 |
| 13 | + |
| 14 | +# The url where arena-web is exposed to external |
| 15 | +export STATIC_FILE_HOST="https://arena.topcoder-dev.com" |
| 16 | + |
| 17 | +# The tc auth host url |
| 18 | +export TC_AUTH_URL="https://accounts-auth0.topcoder-dev.com" |
| 19 | + |
| 20 | +# Web socket server url |
| 21 | +# This url should map to 5016 port of arena-app service, e.g by using load balancer. |
| 22 | +export WEB_SOCKET_URL="https://arenaws.topcoder-dev.com" |
| 23 | + |
| 24 | +# TC-api url |
| 25 | +export API_DOMAIN="https://api.topcoder-dev.com/v2" |
| 26 | + |
| 27 | +# The TopCoder host name |
| 28 | +export TC_HOSTNAME="https://www.topcoder-dev.com" |
| 29 | + |
| 30 | + |
| 31 | +export AUTH0_CONNECTION=vm-ldap-connection |
| 32 | +export AUTH0_DOMAIN=sma.auth0.com |
| 33 | +export AUTH0_CLIENT_ID=CMaBuwSnY0Vu68PLrWatvvu3iIiGPh7t |
| 34 | +export CALLBACK_URL=https://www.topcoder-dev.com/reg2/callback.action |
| 35 | + |
| 36 | +export REGISTRATION_URL='https://www.topcoder-dev.com/?action=callback®Source=arena' |
| 37 | +export PW_RESET_URL='https://www.topcoder-dev.com/password-recovery/' |
| 38 | + |
| 39 | +# the cookie key of sso token |
| 40 | +export SSO_KEY=tcsso |
| 41 | + |
| 42 | +export AWS_ACCESS_KEY_ID= |
| 43 | +export AWS_ACCESS_KEY= |
| 44 | +export AWS_BUCKET= |
| 45 | +export AWS_FOLDER='arena/md/web-v<%= pkg.version %>/' |
| 46 | + |
| 47 | +export GOOGLE_ANALYTICS_TRACKING_ID= |
| 48 | + |
| 49 | +# the connection timeout to web socket |
| 50 | +export CONNECTION_TIMEOUT=30000 |
| 51 | + |
| 52 | +# the member photo host |
| 53 | +export MEMBER_PHOTO_HOST=http://apps.topcoder.com |
| 54 | + |
| 55 | +export JWT_TOKEN=tcjwt |
| 56 | +export CHAT_LENGTH=400 |
| 57 | +export LOCAL_STORAGE_EXPIRE_TIME=1800 |
| 58 | + |
| 59 | +# Facebook API client ID |
| 60 | +export FACEBOOK_API_ID=652496988181876 |
| 61 | + |
| 62 | +# Message template to post contestant status to Facebook and Twitter |
| 63 | +export SOCIAL_STATUS_TEMPLATE='I have participated in __MATCHES__ in #topcoder arena. My current rating is __RATING__.' |
| 64 | +# The url of the Web Arena used in posting to Facebook and Twitter |
| 65 | +export SOCIAL_ARENA_URL=https://arena.topcoder.com |
| 66 | +# The Web Arena description used in posting to Facebook wall |
| 67 | +export SOCIAL_ARENA_DESCRIPTION='Algorithm matches for big brains. Solve these and bragging rights are yours.' |
| 68 | +# The Web Arena Title used in posting to Facebook wall |
| 69 | +export SOCIAL_ARENA_TITLE='TopCoder Arena' |
| 70 | + |
| 71 | +# Message template to post contestant SRM results to Facebook and Twitter |
| 72 | +export SOCIAL_SRM_RESULTS_STATUS_TEMPLATE='I was #__POSITION__ with __POINTS__ in the __SRM__NAME__ at the #topcoder Arena' |
| 73 | +# The SRM results title used in posting to Facebook wall |
| 74 | +export SOCIAL_SRM_RESULTS_STATUS_TITLE='__HANDLE__ shared his SRM results!' |
| 75 | +# The SRM results caption used in posting to Facebook wall |
| 76 | +export SOCIAL_SRM_RESULTS_STATUS_CAPTION='Join topcoder now!' |
| 77 | +# The SRM results picture url used in posting to Facebook wall |
| 78 | +export SOCIAL_SRM_RESULTS_STATUS_PICTURE_URL='https://dl.dropboxusercontent.com/u/14772132/arena-picture.png' |
| 79 | + |
| 80 | +export TWEET_TEXT='I am about to participate in a #topcoder arena match, and I am challenging you! To register for the match click arena.topcoder.com.' |
| 81 | +export TWEET_URL=arena.topcoder.com |
| 82 | +export FACEBOOK_LINK=arena.topcoder.com |
| 83 | + |
| 84 | +export DIVISION_LEADERBOARD_LIMIT=14 |
| 85 | + |
| 86 | +# The number of top coders shown in Match Summary widget |
| 87 | +export SUMMARY_TOPCODER_COUNT=4 |
| 88 | + |
| 89 | +export PRACTICE_PROBLEM_LIST_PAGE_SIZE=10 |
| 90 | + |
| 91 | +# The time (in ms) after which the loading spinner times out if there is no activity. |
| 92 | +export SPINNER_TIMEOUT=90000 |
| 93 | + |
| 94 | +# Google Docs Spreadsheet URL for saving feedbacks and its maxlength |
| 95 | +export FEEDBACK_SPREADSHEET_URL=https://script.google.com/macros/s/AKfycbxSDbXXaz5y1wDKWa_XToU2yyi0yAvAobXh8vF2WuT3VrFd14YN/exec |
| 96 | +export FEEDBACK_MAXLENGTH=10000 |
| 97 | + |
| 98 | +# shortcut configuration |
| 99 | +export KEYBOARD_SHORTCUT='shift+tab' |
| 100 | + |
| 101 | +# The time (in ms) to hide the entering / leaving icons in chat area |
| 102 | +export CHAT_ICON_DISAPPEAR_TIME=3000 |
| 103 | + |
| 104 | +# Time interval between challenge changes in challenge advertising widget (milliseconds) |
| 105 | +export CHALLENGE_ADVERTISING_INTERVAL=5000 |
| 106 | + |
| 107 | +# The time interval between updates of challenge advertising data from TC-API server (in ms) |
| 108 | +export CHALLENGE_ADVERTISING_UPDATE=300000 |
| 109 | + |
| 110 | +# The time interval between updates of leaderboard summay (in ms) |
| 111 | +export LEADERBOARD_REFRESH_TIME_GAP=1000 |
| 112 | + |
| 113 | +# The max live leaderboard number |
| 114 | +export MAX_LIVE_LEADERBOARD=200 |
| 115 | + |
| 116 | +#The New Relic Browser KEY |
| 117 | +export NEWRELIC_BROWSER_APPLICATIONID='4447207' |
| 118 | +export NEWRELIC_BROWSER_LICENSCEKEY='28fb2fc79c' |
| 119 | +#The New Relic Server KEY |
| 120 | +export NEWRELIC_SERVER_APPNAME='testserver' |
| 121 | +export NEWRELIC_SERVER_LICENSE_KEY='8f1eb71c599e28fb2b02e7e521488cbabb97174f' |
| 122 | +export NEWRELIC_SERVER_LOGGING_LEVEL='trace' |
| 123 | + |
| 124 | +# Time interval for auto saving code (milliseconds) |
| 125 | +export AUTO_SAVING_CODE_INTERVAL=30000 |
| 126 | + |
| 127 | +# The number of top coders shown in Active Matches Summary widget |
| 128 | +export ACTIVE_MATCHES_SUMMARY_TOPCODER_COUNT=3 |
| 129 | + |
| 130 | +# The file name of the sponsor logo images. The files must be at app/img/{theme}/ |
| 131 | +export SPONSOR_LOGO=../img/dark/company_logo.png |
| 132 | +export SPONSOR_LOGO_SMALL=../img/dark/company_logo_small.png |
| 133 | +export SPONSOR_URL=http://www.appirio.com |
0 commit comments