Skip to content

Commit 1aba5d6

Browse files
committed
version 1.0.2
1 parent 5133d63 commit 1aba5d6

4 files changed

Lines changed: 31 additions & 3 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1
1+
1.0.2

app.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,16 @@ Services.db.connect(app);
3535
let corsOptions = {};
3636

3737
if (!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

4450
app.use(cors(corsOptions));
@@ -79,6 +85,7 @@ searchRouter.activate(apiRouter);
7985
Services.log.info("Search router activated");
8086

8187
apiRouter.use("/", indexRouter);
88+
app.use("/", indexRouter);
8289

8390
app.use("/api", apiRouter);
8491

ingress.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Ingress
3+
metadata:
4+
name: basic-ingress
5+
spec:
6+
backend:
7+
serviceName: hackboard
8+
servicePort: 8080

service.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

0 commit comments

Comments
 (0)