Skip to content

Commit b727210

Browse files
committed
Merge branch 'main' into max-timer
2 parents 68f570e + c1bf01d commit b727210

File tree

395 files changed

+20118
-12353
lines changed

Some content is hidden

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

395 files changed

+20118
-12353
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Description:
22

3+
Describe the PR.
4+
35
## Please complete the following:
46

57
- [ ] I have added screenshots for all UI updates
@@ -10,4 +12,4 @@
1012

1113
## Please put your Discord username so you can be contacted if a bug or regression is found:
1214

13-
<DISCORD USERNAME>
15+
DISCORD_USERNAME

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
build:
1212
name: 🏗️ Build
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 30
1415
steps:
1516
- name: Checkout repository
1617
uses: actions/checkout@v4
@@ -29,6 +30,7 @@ jobs:
2930
test:
3031
name: 🔬 Test
3132
runs-on: ubuntu-latest
33+
timeout-minutes: 30
3234
steps:
3335
- name: Checkout repository
3436
uses: actions/checkout@v4
@@ -44,6 +46,7 @@ jobs:
4446
eslint:
4547
name: 🔍 ESLint
4648
runs-on: ubuntu-latest
49+
timeout-minutes: 30
4750
steps:
4851
- uses: actions/checkout@v4
4952
- uses: actions/setup-node@v4
@@ -56,6 +59,7 @@ jobs:
5659
prettier:
5760
name: 🎨 Prettier
5861
runs-on: ubuntu-latest
62+
timeout-minutes: 30
5963
steps:
6064
- uses: actions/checkout@v4
6165
- uses: actions/setup-node@v4

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
# Use different logic based on event type
4848
name: Deploy to ${{ inputs.target_domain || 'openfront.dev' }}
4949
runs-on: ubuntu-latest
50+
timeout-minutes: 30
5051
environment: ${{ inputs.target_domain == 'openfront.io' && 'prod' || '' }}
5152
env:
5253
DOMAIN: ${{ inputs.target_domain || 'openfront.dev' }}

.github/workflows/pr-description.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
validate-description:
1616
name: Validate Description
1717
runs-on: ubuntu-latest
18+
timeout-minutes: 30
1819
steps:
1920
- uses: actions/github-script@v7
2021
with:
@@ -24,7 +25,7 @@ jobs:
2425
const errors = [];
2526
2627
// Check for ## Description section
27-
const descMatch = body.match(/^## Description:\s*\n((?:(?!^#).*\n?)*)/m);
28+
const descMatch = body.match(/^## Description:\s*\n([\s\S]*?)(?:^## |\Z)/m);
2829
if (!descMatch || descMatch[1].trim().length < 20) {
2930
errors.push('❌ Missing or short `## Description:` section.');
3031
}
@@ -54,6 +55,7 @@ jobs:
5455
has-milestone:
5556
name: Has Milestone
5657
runs-on: ubuntu-latest
58+
timeout-minutes: 30
5759
steps:
5860
- uses: actions/github-script@v7
5961
with:

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 🏷️ Release
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
- edited
8+
9+
permissions: {}
10+
11+
jobs:
12+
print-release-info:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 30
15+
steps:
16+
- name: 🖨 Print release info
17+
env:
18+
RELEASE_TAG_NAME: ${{ github.event.release.tag_name }}
19+
RELEASE_NAME: ${{ github.event.release.name }}
20+
RELEASE_BODY: ${{ github.event.release.body }}
21+
run: |
22+
cat <<EOF >> $GITHUB_STEP_SUMMARY
23+
Name: ${RELEASE_NAME}
24+
Tag: ${RELEASE_TAG_NAME}
25+
Changelog:
26+
${RELEASE_BODY}
27+
EOF

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ resources/images/.DS_Store
88
resources/.DS_Store
99
.env*
1010
.DS_Store
11+
.clinic/

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ RUN npm run build-prod
4747
# https://openfront.io/commit.txt
4848
RUN echo "$GIT_COMMIT" > static/commit.txt
4949

50+
# Update worker_connections in the existing nginx.conf
51+
RUN sed -i 's/worker_connections [0-9]*/worker_connections 8192/' /etc/nginx/nginx.conf
52+
5053
# Copy Nginx configuration and ensure it's used instead of the default
5154
COPY nginx.conf /etc/nginx/conf.d/default.conf
5255
RUN rm -f /etc/nginx/sites-enabled/default

LICENSE

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1+
# License Information for OpenFront.io Project
2+
3+
## Overview
4+
5+
As of commit 25d5cc370207fd39e0c3bcaa69873b8fc6c60e68, the src/client directory of the OpenFront.io project has been relicensed from the MIT License to the GNU General Public License (GPL) version 3.0. The rest of the project remains under the MIT License unless otherwise specified. Assets in the `/non-commercial/` directory are licensed under CC BY-NC 4.0 with a commercial exemption for OpenFront LLC. Below are the details of all licenses and their applicability.
6+
7+
## MIT License
8+
9+
**Applies to:** All parts of the OpenFront.io project except the src/client directory as of commit 25d5cc370207fd39e0c3bcaa69873b8fc6c60e68 (March 25 2025) and the `resources/non-commercial/` directory.
10+
111
MIT License
212

3-
Copyright (c) 2025 OpenFront.io Team
13+
Portions Copyright (c) 2024 WarFront.io Team
14+
Portions Copyright (c) 2024 OpenFront.io Team
415

516
Permission is hereby granted, free of charge, to any person obtaining a copy
617
of this software and associated documentation files (the "Software"), to deal
@@ -19,3 +30,69 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1930
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2031
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2132
SOFTWARE.
33+
34+
## GNU General Public License (GPL) version 3.0
35+
36+
**Applies to:** The src/client directory as of commit 25d5cc370207fd39e0c3bcaa69873b8fc6c60e68.
37+
38+
GNU GENERAL PUBLIC LICENSE
39+
Version 3, 29 June 2007
40+
41+
Copyright (c) 2025 OpenFront.io Team
42+
43+
This program is free software: you can redistribute it and/or modify
44+
it under the terms of the GNU General Public License as published by
45+
the Free Software Foundation, either version 3 of the License, or
46+
(at your option) any later version.
47+
48+
This program is distributed in the hope that it will be useful,
49+
but WITHOUT ANY WARRANTY; without even the implied warranty of
50+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51+
GNU General Public License for more details.
52+
53+
You should have received a copy of the GNU General Public License
54+
along with this program. If not, see <https://www.gnu.org/licenses/>.
55+
56+
[Full text of the GPL v3.0 license can be found in src/client/LICENSE-GPL.txt, or at <https://www.gnu.org/licenses/gpl-3.0.txt>]
57+
58+
## CC BY-NC 4.0 with Commercial Exemption
59+
60+
**Applies to:** Assets in the `/non-commercial/` directory.
61+
62+
CC BY-NC 4.0 with OpenFront LLC Commercial Exemption
63+
64+
Copyright (c) 2025 OpenFront.io Team and Contributors
65+
66+
This work is licensed under Creative Commons Attribution-NonCommercial 4.0
67+
International License with the following exception:
68+
69+
**OpenFront LLC is granted unlimited commercial use rights for all purposes.**
70+
71+
For all other parties, standard CC BY-NC 4.0 terms apply, which means:
72+
73+
- **Attribution:** You must give appropriate credit
74+
- **NonCommercial:** You may not use the material for commercial purposes
75+
- **No additional restrictions:** You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits
76+
77+
Full CC BY-NC 4.0 license text: https://creativecommons.org/licenses/by-nc/4.0/
78+
79+
## Important Notes
80+
81+
- **MIT License:** A permissive license that allows users to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software with minimal restrictions, provided the copyright notice and permission notice are included.
82+
83+
- **GPL v3.0:** A copyleft license that requires any derivative works or distributions of the src/client code to also be licensed under GPL v3.0 or later, ensuring that the source code remains open and freely available.
84+
85+
- **CC BY-NC 4.0 with Exemption:** Protects assets from commercial exploitation while allowing OpenFront LLC full commercial rights. Community use for non-commercial purposes is encouraged.
86+
87+
- **Mixed Licensing:** If you are combining code from src/client (GPL) with other parts of the project (MIT), the GPL's copyleft requirements may affect the licensing of the combined work. Consult a legal expert for specific guidance.
88+
89+
- **Contributions:**
90+
- For contributions to src/client, ensure that all contributors agree to the GPL v3.0 terms.
91+
- For contributions to `/non-commercial/`, contributors grant CC BY-NC rights to the public and commercial rights to OpenFront LLC as specified in our contribution guidelines.
92+
- For contributions to other directories, standard MIT terms apply.
93+
94+
## Contributing
95+
96+
Please see our CONTRIBUTING.md file for detailed information about licensing requirements for different parts of the project.
97+
98+
For any questions, contact the OpenFront.io Team.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ This is a fork/rewrite of WarFront.io. Credit to https://github.com/WarFrontIO.
1717

1818
# OpenFront - Licensing
1919

20-
This project uses a dual-licensing approach:
20+
This project uses a multi-licensing approach:
2121

2222
- Code in the `server/` and `core/` directory is licensed under MIT
2323
- Client code (in the `client/` directory) is licensed under GPL v3
24+
- Assets in resources/non-commercial are under CC BY-NC 4.0 with OpenFront LLC Commercial Exemption. By contributing assets to /non-commercial/, contributors agree that OpenFront LLC may use their contributions for commercial purposes while the contributions remain CC BY-NC 4.0 for all other parties.
25+
26+
See LICENSE file for more details.
2427

2528
## 🌟 Features
2629

__mocks__/fileMock.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = "test-file-stub";

0 commit comments

Comments
 (0)