File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- 1.0.1
1+ 1.0.2
Original file line number Diff line number Diff line change @@ -35,10 +35,16 @@ Services.db.connect(app);
3535let corsOptions = { } ;
3636
3737if ( ! Services . env . isProduction ( ) ) {
38- corsOptions = { origin : [ "http://localhost:1337" , "http://localhost:8989" ] , credentials : true } ;
38+ corsOptions = {
39+ origin : [ "http://localhost:1337" , "http://localhost:8989" ] ,
40+ credentials : true
41+ } ;
3942} else {
4043 // TODO: change this when necessary
41- corsOptions = { origin : [ "https://mchacks.ca/" ] , credentials : true } ;
44+ corsOptions = {
45+ origin : [ "https://mchacks.ca/" ] ,
46+ credentials : true
47+ } ;
4248}
4349
4450app . use ( cors ( corsOptions ) ) ;
@@ -79,6 +85,7 @@ searchRouter.activate(apiRouter);
7985Services . log . info ( "Search router activated" ) ;
8086
8187apiRouter . use ( "/" , indexRouter ) ;
88+ app . use ( "/" , indexRouter ) ;
8289
8390app . use ( "/api" , apiRouter ) ;
8491
Original file line number Diff line number Diff line change 1+ apiVersion : extensions/v1beta1
2+ kind : Ingress
3+ metadata :
4+ name : basic-ingress
5+ spec :
6+ backend :
7+ serviceName : hackboard
8+ servicePort : 8080
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : Service
3+ metadata :
4+ name : hackboard
5+ spec :
6+ selector :
7+ app : hackboard
8+ ports :
9+ - name : http
10+ protocol : TCP
11+ port : 8080
12+ targetPort : 8080
13+ type : NodePort
You can’t perform that action at this time.
0 commit comments