added build & dev version

This commit is contained in:
Vittorio Palmisano 2021-03-16 18:05:36 +01:00
parent 876d8e19cc
commit e8a21013a7
4 changed files with 6 additions and 4 deletions

View file

@ -16,6 +16,7 @@ docker-compose logs -f --tail=50 edumeet
Accessing endpoints:
- Edumeet: https://127.0.0.1:8443/
- Edumeet (app live dev): https://127.0.0.1:8443/
- Edumeet (app build): https://127.0.0.1:3443/
- Prometheus: http://127.0.0.1:9090/
- Grafana: http://127.0.0.1:9091/ (user:pass `admin`:`admin`)

View file

@ -171,11 +171,11 @@ module.exports =
listeningPort : 3443,
// Any http request is redirected to https.
// Listening port for http server.
//listeningRedirectPort : 8080,
listeningRedirectPort : 8080,
// Listens only on http, only on listeningPort
// listeningRedirectPort disabled
// use case: loadbalancer backend
httpOnly : true,
httpOnly : false,
// WebServer/Express trust proxy config for httpOnly mode
// You can find more info:
// - https://expressjs.com/en/guide/behind-proxies.html

View file

@ -16,7 +16,7 @@ server {
# server
location ~ ^/(socket\.io) {
proxy_pass http://edumeet:3443;
proxy_pass https://edumeet:3443;
#
proxy_http_version 1.1;
proxy_redirect off;

View file

@ -6,4 +6,5 @@ WORKDIR /edumeet
ENV DEBUG=edumeet*,mediasoup*
RUN npm install -g nodemon && \
npm install -g concurrently
CMD cd app && yarn && yarn build
CMD concurrently --names "server,app" "cd server && yarn && nodemon server.js" "cd app && yarn && yarn start"