Skip to content

Commit

Permalink
Merge pull request #157 from blenderskool/next
Browse files Browse the repository at this point in the history
Version 3.0.0 ⚡️🚀
  • Loading branch information
blenderskool authored Jan 3, 2023
2 parents 6fed0b5 + 1450c33 commit 2494dea
Show file tree
Hide file tree
Showing 82 changed files with 18,406 additions and 12,727 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14.16.1-alpine as base
FROM node:16.19.0-alpine as base

WORKDIR /app

Expand All @@ -21,7 +21,7 @@ COPY ./client .
COPY ./common ../common
RUN npm run build

FROM node:14.16.1-alpine
FROM node:16.19.0-alpine

# Installing nginx and gettext alpine packages
# gettext is for envsubst command
Expand All @@ -38,6 +38,8 @@ COPY ./server/package*.json ./server/
WORKDIR /app/server

ENV NODE_ENV "production"
ENV TRUST_PROXY true
ENV DISABLE_SSE_EVENTS=
RUN npm install

COPY ./server .
Expand Down
26 changes: 14 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,20 @@ Blaze is sponsored by:
Following environment variables can be set in the build process:


| variable | description | default |
|----------------------|-----------------------------------------------------------------------|---------------------------------|
| **client** | Variables for **client** should be set as build args if using Docker. | |
| `WS_HOST` | URL to the server that is running the Blaze WebSockets server. | 'ws://\<your-local-ip\>:3030' |
| `SERVER_HOST` | URL to the server that running the Blaze HTTP server. | 'http://\<your-local-ip\>:3030' |
| `WS_SIZE_LIMIT` | Max file size limit when transferring files over WebSockets in bytes. | 100000000 (100 MBs) |
| `TORRENT_SIZE_LIMIT` | Max file size limit when transferring files over WebTorrent in bytes. | 700000000 (700 MBs) |
| **server** | | |
| `ORIGIN` | Array of string URLs to allow CORS. | * |
| `PORT` | Port for the server to run. | 3030 |
| `WS_SIZE_LIMIT` | Max file size limit when transferring files over WebSockets in bytes. | 100000000 (100 MBs) |
----------------------------------------------------------------------------------------------------------------------------------
| variable | description | default |
|----------------------|-----------------------------------------------------------------------|---------------------------------------------------|
| **client** | Variables for **client** should be set as build args if using Docker. | |
| `WS_HOST` | URL to the server that is running the Blaze WebSockets server. | 'ws://\<your-local-ip\>:3030' |
| `SERVER_HOST` | URL to the server that running the Blaze HTTP server. | 'http://\<your-local-ip\>:3030' |
| `WS_SIZE_LIMIT` | Max file size limit when transferring files over WebSockets in bytes. | 100000000 (100 MBs) |
| `TORRENT_SIZE_LIMIT` | Max file size limit when transferring files over WebTorrent in bytes. | 700000000 (700 MBs) |
| **server** | | |
| `ORIGIN` | Array of string URLs to allow CORS. | * |
| `PORT` | Port for the server to run. | 3030 |
| `WS_SIZE_LIMIT` | Max file size limit when transferring files over WebSockets in bytes. | 100000000 (100 MBs) |
| `DISABLE_SSE_EVENTS` | Disable server side events to reduce long-lived connections. | false |
| `TRUST_PROXY` | Whether server is behind a trusted proxy and can read forwarded IPs. | _false_ when standalone, _true_ in docker-compose |
----------------------------------------------------------------------------------------------------------------------------------------------------

**NOTE:** Any URL in the environment variables should not end with `/`.

Expand Down
34 changes: 28 additions & 6 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"author": "Akash Hamirwasia",
"license": "ISC",
"dependencies": {
"node-fetch": "^2.6.1",
"node-fetch": "^2.6.7",
"preact": "^10.5.8",
"preact-render-to-string": "^5.1.12"
},
Expand Down
15 changes: 0 additions & 15 deletions client/.babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14.16.1 AS base
FROM node:16.19.0 AS base

WORKDIR /app

Expand Down
Loading

0 comments on commit 2494dea

Please sign in to comment.