-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
.idea | ||
venv | ||
api/client/node_modules | ||
socketio/node_modules | ||
docs | ||
testing | ||
__pycache__ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,50 @@ | ||
server { | ||
listen 8081; | ||
listen 8080 ssl; | ||
ssl_certificate /opt/bitnami/nginx/conf/cert.pem; | ||
ssl_certificate_key /opt/bitnami/nginx/conf/key.pem; | ||
error_page 497 https://$host:$server_port$request_uri; | ||
|
||
location / { | ||
add_header X-Frame-Options "ALLOWALL"; | ||
proxy_pass http://core_api:8080; | ||
proxy_read_timeout 24h; | ||
} | ||
|
||
location /walkoff/api/streams/ { | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_http_version 1.1; | ||
proxy_pass http://core_api:8080/walkoff/api/streams/; | ||
} | ||
|
||
location /mongo/ { | ||
proxy_pass http://debug_mongo_express:8081/mongo/; | ||
} | ||
|
||
location /minio/ { | ||
proxy_pass http://resource_minio:9000/minio/; | ||
} | ||
|
||
location /portainer/ { | ||
proxy_http_version 1.1; | ||
proxy_set_header Connection ""; | ||
proxy_pass http://resource_portainer:9000/; | ||
} | ||
|
||
location /portainer/api/websocket/ { | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_http_version 1.1; | ||
proxy_pass http://resource_portainer:9000/api/websocket/; | ||
} | ||
} | ||
server { | ||
listen 8081; | ||
listen 8080 ssl; | ||
ssl_certificate /opt/bitnami/nginx/conf/cert.pem; | ||
ssl_certificate_key /opt/bitnami/nginx/conf/key.pem; | ||
error_page 497 https://$host:$server_port$request_uri; | ||
|
||
location / { | ||
add_header X-Frame-Options "ALLOWALL"; | ||
proxy_pass http://core_api:8080; | ||
proxy_read_timeout 24h; | ||
} | ||
|
||
location /walkoff/api/streams/ { | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_pass http://core_api:8080/walkoff/api/streams/; | ||
} | ||
|
||
location /walkoff/sockets/ { | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection 'upgrade'; | ||
proxy_set_header Host $host; | ||
proxy_cache_bypass $http_upgrade; | ||
proxy_pass http://core_socketio:3000; | ||
} | ||
|
||
location /mongo/ { | ||
proxy_pass http://debug_mongo_express:8081/mongo/; | ||
} | ||
|
||
location /minio/ { | ||
proxy_pass http://resource_minio:9000/minio/; | ||
} | ||
|
||
location /portainer/ { | ||
proxy_http_version 1.1; | ||
proxy_set_header Connection ""; | ||
proxy_pass http://resource_portainer:9000/; | ||
} | ||
|
||
location /portainer/api/websocket/ { | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_http_version 1.1; | ||
proxy_pass http://resource_portainer:9000/api/websocket/; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM node:12.13.0-buster-slim as base | ||
|
||
# Stage - Install/build Python dependencies | ||
FROM base as builder | ||
|
||
RUN mkdir /install | ||
WORKDIR /install | ||
|
||
COPY ./socketio /install | ||
RUN npm install | ||
RUN npm run build | ||
|
||
# Stage - Copy pip packages and source files | ||
FROM base | ||
|
||
COPY --from=builder /install / | ||
# COPY ./common /app/common | ||
# COPY ./api /app/api | ||
# WORKDIR /dist | ||
|
||
EXPOSE 3000 | ||
CMD [ "npm", "start" ] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.