Merge pull request #314 from Portabase/dev

Dev
This commit is contained in:
Charles GTE
2026-06-09 19:55:38 +02:00
committed by GitHub
6 changed files with 26 additions and 3 deletions
+3
View File
@@ -78,3 +78,6 @@ TRUSTED_DOMAINS="http://localhost:8887, http://localhost:3055, http://localhost:
#OPENAPI_ENABLED=true
#API_ENABLED=true
#MCP_ENABLED=true
# Default to false
#TUSD_BEHIND_PROXY=true
+1
View File
@@ -92,6 +92,7 @@ ENV PORT=80
ENV HOSTNAME="0.0.0.0"
ENV PGDATA=/data/postgres
ENV PRIVATE_PATH=/data/private
ENV TUSD_BEHIND_PROXY=false
RUN addgroup --system --gid 1001 nodejs
+12 -1
View File
@@ -72,7 +72,18 @@ fi
mkdir -p /data/private/uploads/tmp
echo "▶ Starting tusd server..."
tusd --base-path /tus/files/ --upload-dir /data/private/uploads/tmp --hooks-http http://127.0.0.1:3000/api/tus/hooks --port 1080 --max-size 21474836480 &
TUSD_BEHIND_PROXY_FLAG=""
if [ "${TUSD_BEHIND_PROXY:-false}" = "true" ]; then
TUSD_BEHIND_PROXY_FLAG="--behind-proxy"
echo "[INFO] TUSD_BEHIND_PROXY=true, enabling tusd proxy mode"
fi
tusd \
--base-path /tus/files/ \
--upload-dir /data/private/uploads/tmp \
--hooks-http http://127.0.0.1:3000/api/tus/hooks \
--port 1080 \
--max-size 21474836480 \
$TUSD_BEHIND_PROXY_FLAG &
echo "▶ Starting Next.js server..."
PORT=3000 node server.js &
+7 -2
View File
@@ -1,6 +1,11 @@
events {}
http {
map $http_x_forwarded_proto $forwarded_proto {
default $scheme;
"~*^\s*(https?)\s*(?:,|$)" $1;
}
client_max_body_size 20G;
ignore_invalid_headers off;
@@ -18,7 +23,7 @@ http {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Proto $forwarded_proto;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
@@ -34,7 +39,7 @@ http {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Proto $forwarded_proto;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
+2
View File
@@ -24,6 +24,8 @@ spec:
value: {{ .Values.project.url }}
- name: PROJECT_SECRET
value: {{ .Values.project.secret }}
- name: TUSD_BEHIND_PROXY
value: {{ .Values.project.behindProxy | quote }}
volumeMounts:
- name: data
mountPath: /data
+1
View File
@@ -23,6 +23,7 @@ timezone: Europe/Paris
project:
url: http://localhost:8887
secret: "change_me_generate_secure_secret"
behindProxy: false
persistence:
enabled: true