Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/deploy/src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ RUN npm run build \
&& cp -a "$src"/. /devforge-static/

FROM nginx:alpine
# Redirections relatives (`/apps/x` → `Location: /apps/x/`) : derrière le proxy
# TLS, nginx reçoit du http et générerait sinon `http://hôte/apps/x/`.
RUN printf 'absolute_redirect off;\n' > /etc/nginx/conf.d/00-devforge-redirect.conf
COPY --from=build /devforge-static /usr/share/nginx/html
EXPOSE 80
"#,
Expand Down Expand Up @@ -1621,6 +1624,10 @@ mod tests {
assert!(static_df.contains(".vercel/output/static"));
assert!(static_df.contains("COPY --from=build /devforge-static"));
assert!(!static_df.contains("COPY --from=build /app/dist"));
assert!(
static_df.contains("absolute_redirect off;"),
"redirections relatives attendues : {static_df}"
);
}

#[test]
Expand Down
Loading