Skip to content

Commit 2494dea

Browse files
authored
Merge pull request #157 from blenderskool/next
Version 3.0.0 ⚡️🚀
2 parents 6fed0b5 + 1450c33 commit 2494dea

82 files changed

Lines changed: 18406 additions & 12727 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14.16.1-alpine as base
1+
FROM node:16.19.0-alpine as base
22

33
WORKDIR /app
44

@@ -21,7 +21,7 @@ COPY ./client .
2121
COPY ./common ../common
2222
RUN npm run build
2323

24-
FROM node:14.16.1-alpine
24+
FROM node:16.19.0-alpine
2525

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

4040
ENV NODE_ENV "production"
41+
ENV TRUST_PROXY true
42+
ENV DISABLE_SSE_EVENTS=
4143
RUN npm install
4244

4345
COPY ./server .

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,20 @@ Blaze is sponsored by:
7676
Following environment variables can be set in the build process:
7777

7878

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

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

api/package-lock.json

Lines changed: 28 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"author": "Akash Hamirwasia",
1111
"license": "ISC",
1212
"dependencies": {
13-
"node-fetch": "^2.6.1",
13+
"node-fetch": "^2.6.7",
1414
"preact": "^10.5.8",
1515
"preact-render-to-string": "^5.1.12"
1616
},

client/.babelrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

client/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14.16.1 AS base
1+
FROM node:16.19.0 AS base
22

33
WORKDIR /app
44

0 commit comments

Comments
 (0)