APmanageur Wi-Fi V1.0
This commit is contained in:
1 parent
2316f57fcd
commit
df803e5ba7
16 files changed
+25607
-5749
No files matched your search
+10
-5
@@ -6,15 +6,15 @@ ENV DEBIAN_FRONTEND=noninteractive \
|
||||
# Apache2 + NetworkManager embarqué + outils Wi-Fi + Python
|
||||
RUN apt-get update \
|
||||
&& apt full-upgrade -y && apt-get install -y --no-install-recommends \
|
||||
apache2 nano python3 tzdata \
|
||||
ca-certificates apache2 nano python3 python3-cryptography tzdata \
|
||||
network-manager wpasupplicant dbus \
|
||||
iw iproute2 rfkill wireless-regdb \
|
||||
dnsmasq-base iptables nftables procps kmod tcpdump \
|
||||
wireguard-tools openvpn ebtables curl conntrack \
|
||||
&& a2enmod proxy proxy_http headers \
|
||||
&& a2enmod proxy proxy_http headers setenvif remoteip rewrite \
|
||||
&& a2disconf other-vhosts-access-log 2>/dev/null || true \
|
||||
&& ln -sf /dev/stdout /var/log/apache2/access.log \
|
||||
&& ln -sf /dev/stderr /var/log/apache2/error.log \
|
||||
&& ln -sf /dev/stdout /var/log/apache2/other_vhosts_access.log \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Vos fichiers
|
||||
@@ -24,9 +24,14 @@ COPY ap.py /app/ap.py
|
||||
ARG HTML_FILE=index.html
|
||||
COPY ${HTML_FILE} /app/index.html
|
||||
COPY ${HTML_FILE} /var/www/html/index.html
|
||||
COPY favicon.png /var/www/html/favicon.png
|
||||
COPY setup.html /app/setup.html
|
||||
COPY setup.html /var/www/html/setup.html
|
||||
COPY images/ /app/images/
|
||||
COPY images/ /var/www/html/images/
|
||||
COPY lang/ /app/lang/
|
||||
COPY lang/ /var/www/html/lang/
|
||||
# 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
|
||||
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
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh && rm -f /var/www/html/index.html.orig \
|
||||
|
||||
Reference in new issue
Block a user