forked from itchy/Dialyse-Webseite
Enable HTTP/2 & HTTP/3
This commit is contained in:
1 parent
014422e0b6
commit
ac8468ca76
10 files changed
+258
-25
No files matched your search
+3
-3
@@ -4,9 +4,9 @@ FROM php:8.5-apache-trixie
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
|
||||
&& printf "date.timezone = Europe/Berlin\nexpose_php = Off\nsession.cookie_httponly = 1\nsession.use_strict_mode = 1\n" > "$PHP_INI_DIR/conf.d/99-custom.ini"
|
||||
|
||||
# Enable Apache modules and harden server signature
|
||||
RUN a2enmod rewrite headers expires deflate \
|
||||
&& printf "ServerTokens Prod\nServerSignature Off\n" > /etc/apache2/conf-available/security-hardening.conf \
|
||||
# Enable Apache modules (including HTTP/2) and harden server signature
|
||||
RUN a2enmod rewrite headers expires deflate http2 \
|
||||
&& printf "ServerTokens Prod\nServerSignature Off\nProtocols h2 h2c http/1.1\n" > /etc/apache2/conf-available/security-hardening.conf \
|
||||
&& a2enconf security-hardening
|
||||
|
||||
# Copy application code
|
||||
|
||||
Reference in new issue
Block a user