APmanageur Wi-Fi V1.0

This commit is contained in:
yoannmultigaming committed 2026-11-21 20:00:54 +01:00
1 parent 5eed2d607e
commit ecc8e872f7
8 files changed
+87 -12

No files matched your search

+9
View File
@@ -36,6 +36,15 @@ COPY jeux/ /app/jeux/
COPY jeux/ /var/www/html/jeux/
COPY version.json /app/version.json
COPY version.json /var/www/html/version.json
ARG AP_GIT_COMMIT=""
ARG BUILD_DATE=""
ENV AP_GIT_COMMIT=${AP_GIT_COMMIT}
RUN if [ -n "${AP_GIT_COMMIT}" ]; then \
sed -i "s/\"commit\": *\"[^\"]*\"/\"commit\": \"${AP_GIT_COMMIT}\"/" /app/version.json /var/www/html/version.json 2>/dev/null || true; \
fi && \
if [ -n "${BUILD_DATE}" ]; then \
sed -i "s/\"build_date\": *\"[^\"]*\"/\"build_date\": \"${BUILD_DATE}\"/" /app/version.json /var/www/html/version.json 2>/dev/null || true; \
fi
# L'API n'est plus joignable que via Apache : le HTML appelle /api sur le même port (1001)
RUN sed -i 's#const API_URL=[^;]*;#const API_URL="";#' /app/index.html /var/www/html/index.html /app/setup.html /var/www/html/setup.html 2>/dev/null || true
COPY apache-ap.conf /etc/apache2/sites-available/000-default.conf