Skip to content

Commit cb56ff6

Browse files
committed
change production deployment to run on port 80, since SSL is provided by kubernetes
1 parent 9e91db5 commit cb56ff6

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

.prettierrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"printWidth": 100,
2+
"printWidth": 112,
33
"tabWidth": 2,
44
"trailingComma": "es5"
55
}

deployment/Dockerfile.prod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# as it contains only the final built app
33

44
# build environment
5-
FROM docker-registry.ebrains.eu/neuromorphic/node:20-alpine as build
5+
FROM docker-registry.ebrains.eu/neuromorphic/node:20-alpine AS build
66
WORKDIR /app
77
ENV PATH /app/node_modules/.bin:$PATH
88
COPY package.json ./
@@ -17,5 +17,4 @@ FROM docker-registry.ebrains.eu/neuromorphic/nginx:stable-alpine
1717
COPY deployment/nginx-app.conf /etc/nginx/conf.d/default.conf
1818
COPY --from=build /app/dist /usr/share/nginx/html
1919
EXPOSE 80
20-
EXPOSE 443
2120
CMD ["nginx", "-g", "daemon off;"]

deployment/nginx-app.conf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@
22

33

44
server {
5-
listen 443 ssl;
6-
7-
# ssl on;
8-
ssl_certificate /etc/letsencrypt/live/job-manager.hbpneuromorphic.eu/fullchain.pem;
9-
ssl_certificate_key /etc/letsencrypt/live/job-manager.hbpneuromorphic.eu/privkey.pem;
5+
listen 80;
106

117
root /usr/share/nginx/html;
128
index index.html;
139

14-
server_name job-manager.hbpneuromorphic.eu;
15-
1610
location / {
1711
try_files $uri $uri/ /index.html;
1812
}

src/globals-prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const jobQueueServer = "https://nmpi-v3.hbpneuromorphic.eu";
22
export const authServer = "https://iam.ebrains.eu";
33
export const authClientId = "neuromorphic-remote-access";
4-
export const driveServer = "https://corsproxy.hbpneuromorphic.eu/https://drive.ebrains.eu";
4+
export const driveServer = "https://corsproxy.apps.tc.humanbrainproject.eu/https://drive.ebrains.eu";
55

66
export const hw_options = [
77
"BrainScaleS",

0 commit comments

Comments
 (0)