Commit Graph

75 Commits

Author SHA1 Message Date
Berkeley Martinez
fa37dc865d Reduce initial user query load
Refactor passport to own file
2016-04-06 21:11:07 -07:00
Panayiotis Lipiridis
c17af58aee Renamed Github to GitHub 2016-04-04 22:50:07 +02:00
Berkeley Martinez
745f059eeb hotfix prevent server from starting twice 2015-10-14 23:49:32 -07:00
Berkeley Martinez
44fd85dff8 Add ability to filter beta challenges from production
This PR adds the ability to test out challenges in beta
without fear that they will leak to production servers.

In development all challenges will display.

In production all challenges marked 'isBeta' will be filtered out
except in the case the environmental variable `BETA` is set ture,
in which case all challenges will display.
2015-10-06 22:37:08 -07:00
Berkeley Martinez
0f3acc629c fix profile linking 2015-08-21 16:09:07 -07:00
Berkeley Martinez
de7eb3d440 fix email password reset 2015-08-16 09:54:59 -07:00
Berkeley Martinez
4b0a9bef0a fix social auth scheme
closes #1734
2015-08-12 20:10:12 -07:00
Berkeley Martinez
fc29c1fd9b linking accounts now works.
bug, need to change how loopback generates provider string.
2015-08-12 20:10:11 -07:00
Berkeley Martinez
a4e220e2bc Move auth functions to central location 2015-08-12 20:10:11 -07:00
Berkeley Martinez
2256f3ef6e fix add github link to passport 2015-08-10 23:38:10 -07:00
Berkeley Martinez
83397b7e1b add picture on github signin/up 2015-08-07 18:10:32 -07:00
Berkeley Martinez
222d841e4f on oauth signin only set profile/username if using github 2015-08-06 00:19:03 -07:00
Berkeley Martinez
2dc9934da2 add user.isGithubCool check
if user signs up with github, they become GithubCool.
2015-08-04 13:41:10 -07:00
Berkeley Martinez
c8488c8419 reremove extra middlewares from server file 2015-08-04 06:28:10 -07:00
benmcmahon100
fc0ccf3aea Fixed typos in magical maths waypoints and restored server.js to a previous working state 2015-08-04 13:28:41 +01:00
Berkeley Martinez
f01a66c5c7 use (LMP)loopback middleware phases
bump loopback-component-passport which uses LMP
move custom middlewares to middlewares directory
2015-08-04 01:34:26 -07:00
Berkeley Martinez
c5af46b33f remove beta flash 2015-08-03 08:31:02 -07:00
Berkeley Martinez
55731aa52d fix beta warning title
closes #1452
2015-08-02 07:07:03 -07:00
Berkeley Martinez
32ce40b815 add beta site warning 2015-08-01 16:11:05 -07:00
Berkeley Martinez
13f2f349dc remove bonfire/comments models
remove comments from user router
2015-07-31 20:22:08 -07:00
Berkeley Martinez
dbe50a5dfa add beta.freecodecamp.com to csp script source 2015-07-25 15:44:40 -07:00
Berkeley Martinez
c0eda90eb1 make production future ready
This commit does the following:

Production start should use the following command `npm run
start-producion` this first runs bower install and builds the front end
app(react). Then it will use the `pm2Start` script. This script will set
up the pm2 daemons to run loopback in cluster mode. This script also use
`production-start` script instead of the regular `server` script.

The reasons are two fold: to ensure `server` is run in es7 mode, and to
wait for handshake from DB or kill itself if no DB can be found within a
certain amount of time.
2015-07-24 22:27:52 -07:00
Berkeley Martinez
f4f2d68551 add state namespace 2015-07-23 16:03:47 -07:00
Berkeley Martinez
6eca181f6f add vimeo to connect sources 2015-07-23 15:49:02 -07:00
Berkeley Martinez
a0278c114d add express state extentions to app 2015-07-23 15:49:00 -07:00
Berkeley Martinez
a5e7009a57 initial react app(WIP) 2015-07-23 15:49:00 -07:00
Berkeley Martinez
580e2e3ebd add redirect for https 2015-07-01 14:35:15 -07:00
Quincy Larson
3bac247627 remove stack trace from production 2015-06-26 01:30:51 -07:00
Berkeley Martinez
7df91e6310 add total time to start to logs during waitFordb 2015-06-21 19:11:42 -07:00
Berkeley Martinez
5e8ed616d5 add wait for db in development before listening for connections 2015-06-21 18:37:29 -07:00
Berkeley Martinez
4804d868c4 wrap server.listen in if module
prevents server from starting durring testing/scripting
2015-06-21 18:10:17 -07:00
Berkeley Martinez
f84ac9ad12 remove forceDomain 2015-06-18 19:56:21 -07:00
Berkeley Martinez
2bf8810d79 add pmx errorhandler in beta spot 2015-06-18 16:19:59 -07:00
terakilobyte
0173804e21 updates helmet policies, makes new startup script 2015-06-18 17:08:21 -04:00
Berkeley Martinez
9c14e5846d add www.freecodecamp.org to trusted list 2015-06-18 13:12:35 -07:00
Berkeley Martinez
bfddc0330f add state attribute to linked oauth
note: a new variable will need to be added to .env 'LINKEDIN_STATE'
which is a random string
2015-06-17 20:59:35 -07:00
Quincy Larson
bb6f153858 make server always show stack traces upon error 2015-06-17 20:26:59 -07:00
terakilobyte
fbb7d0b065 Remove ssl on node servers 2015-06-17 15:40:44 -04:00
terakilobyte
810bf9a3f7 force https for blob url in _frame.js. Updates helmet to allow more inspectlet domains. 2015-06-16 15:59:22 -04:00
terakilobyte
1607fe0ba5 Updates server listen in production 2015-06-16 15:51:04 -04:00
terakilobyte
7915e8a77e 99 problems, and production only errors are 98 of them 2015-06-16 15:41:59 -04:00
terakilobyte
9e8796a0c4 More tweaking 2015-06-16 15:38:22 -04:00
terakilobyte
a662187d93 More ssl setup 2015-06-16 15:24:55 -04:00
terakilobyte
645c0aac0e Server test 2015-06-16 14:51:40 -04:00
terakilobyte
b25dd9416b More https configuration 2015-06-16 14:43:49 -04:00
terakilobyte
7e420217eb More https configuration 2015-06-16 14:43:12 -04:00
terakilobyte
0a8356e50f Configure production to run in https 2015-06-16 14:30:16 -04:00
terakilobyte
b0b236821e More inspectlet configuring 2015-06-16 12:30:49 -04:00
terakilobyte
97668120ad More work to load google fonts 2015-06-16 12:04:26 -04:00
terakilobyte
efb4bd1781 Even more testing 2015-06-16 11:54:58 -04:00