mirror of
https://github.com/caprover/caprover
synced 2025-10-30 01:57:03 +00:00
Compare commits
2 Commits
349c313fd3
...
683f353533
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
683f353533 | ||
|
|
f56f3366a3 |
2
.github/workflows/build_project.yml
vendored
2
.github/workflows/build_project.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 22
|
||||
- run: |
|
||||
sudo bash -c "mkdir /captain && chown -R `whoami` /captain"
|
||||
npm ci
|
||||
|
||||
2
.github/workflows/format_project.yml
vendored
2
.github/workflows/format_project.yml
vendored
@@ -15,5 +15,5 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 22
|
||||
- run: npm ci && npm run formatter
|
||||
|
||||
2
.github/workflows/lint_project.yml
vendored
2
.github/workflows/lint_project.yml
vendored
@@ -15,5 +15,5 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 22
|
||||
- run: npm ci && npm run lint
|
||||
|
||||
2
.github/workflows/publish_edge.yml
vendored
2
.github/workflows/publish_edge.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 22
|
||||
- run: |
|
||||
sudo bash -c "mkdir /captain && chown -R `whoami` /captain"
|
||||
npm ci
|
||||
|
||||
2
.github/workflows/publish_release.yml
vendored
2
.github/workflows/publish_release.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 22
|
||||
- run: |
|
||||
sudo bash -c "mkdir /captain && chown -R `whoami` /captain"
|
||||
npm ci
|
||||
|
||||
@@ -64,7 +64,7 @@ Link this folder to the root folder (Apple does not allow to create folder on th
|
||||
|
||||
#####
|
||||
|
||||
use node 18 then
|
||||
use node 22 then
|
||||
|
||||
```bash
|
||||
$ npm install
|
||||
@@ -75,12 +75,12 @@ $ ./dev-scripts/dev-clean-run-as-dev-macos-step-2.sh
|
||||
|
||||
The main differences between the release and debug mode are:
|
||||
|
||||
- docker image is created from the local source file, instead of getting pulled from Docker hub
|
||||
- security is much weaker is debug due to a static salt
|
||||
- self health monitoring is disabled in debug so that we can see possible crashes
|
||||
- same origin policy is disabled in debug mode to make front end development easier
|
||||
- an additional endpoint is available at `/force-exit` which force restarts the backend service
|
||||
- static resources (including front end app) are not being served in debug build.
|
||||
- docker image is created from the local source file, instead of getting pulled from Docker hub
|
||||
- security is much weaker is debug due to a static salt
|
||||
- self health monitoring is disabled in debug so that we can see possible crashes
|
||||
- same origin policy is disabled in debug mode to make front end development easier
|
||||
- an additional endpoint is available at `/force-exit` which force restarts the backend service
|
||||
- static resources (including front end app) are not being served in debug build.
|
||||
|
||||
Captain by default uses `captain.localhost` as its root domain. It's not always needed, but if you need a root
|
||||
domain for your development, you can simply run a local DNS server on your local machine and point
|
||||
@@ -128,22 +128,22 @@ orientation.
|
||||
Examples of behavior that contributes to creating a positive environment
|
||||
include:
|
||||
|
||||
- Using welcoming and inclusive language
|
||||
- Being respectful of differing viewpoints and experiences
|
||||
- Gracefully accepting constructive criticism
|
||||
- Focusing on what is best for the community
|
||||
- Showing empathy towards other community members
|
||||
- Using welcoming and inclusive language
|
||||
- Being respectful of differing viewpoints and experiences
|
||||
- Gracefully accepting constructive criticism
|
||||
- Focusing on what is best for the community
|
||||
- Showing empathy towards other community members
|
||||
|
||||
Examples of unacceptable behavior by participants include:
|
||||
|
||||
- The use of sexualized language or imagery and unwelcome sexual attention or
|
||||
advances
|
||||
- Trolling, insulting/derogatory comments, and personal or political attacks
|
||||
- Public or private harassment
|
||||
- Publishing others' private information, such as a physical or electronic
|
||||
address, without explicit permission
|
||||
- Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
- The use of sexualized language or imagery and unwelcome sexual attention or
|
||||
advances
|
||||
- Trolling, insulting/derogatory comments, and personal or political attacks
|
||||
- Public or private harassment
|
||||
- Publishing others' private information, such as a physical or electronic
|
||||
address, without explicit permission
|
||||
- Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
### Our Responsibilities
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM node:18
|
||||
FROM node:22
|
||||
RUN apt-get update && apt-get full-upgrade -yqq && apt-get install build-essential cmake -yqq
|
||||
|
||||
RUN apt-get -y install netcat-traditional socat
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM node:18-alpine
|
||||
FROM node:22-alpine
|
||||
RUN apk update && apk upgrade --no-cache && apk add --update --no-cache make gcc g++ git curl openssl openssh
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
# NodeJS v20 freezes when building for multiarch
|
||||
# https://github.com/nodejs/docker-node/issues/2155
|
||||
|
||||
FROM node:18-alpine
|
||||
FROM node:22-alpine
|
||||
RUN apk add --update --no-cache make gcc g++ git curl openssl openssh
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
# NodeJS v20 freezes when building for multiarch
|
||||
# https://github.com/nodejs/docker-node/issues/2155
|
||||
|
||||
FROM node:18-alpine
|
||||
FROM node:22-alpine
|
||||
RUN apk add --update --no-cache make gcc g++ git curl openssl openssh
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
@@ -52,7 +52,7 @@ app.use(
|
||||
app.use(cookieParser())
|
||||
|
||||
if (CaptainConstants.isDebug) {
|
||||
app.use('*', function (req, res, next) {
|
||||
app.use('/', function (req, res, next) {
|
||||
res.setHeader('Access-Control-Allow-Origin', '*')
|
||||
res.setHeader('Access-Control-Allow-Credentials', 'true')
|
||||
res.setHeader(
|
||||
|
||||
Reference in New Issue
Block a user