mirror of
https://github.com/linuxserver/docker-heimdall.git
synced 2025-10-30 04:27:38 +09:00
Merge pull request #150 from linuxserver/development-parity
Add opcache and clean up default site conf
This commit is contained in:
@@ -17,15 +17,19 @@ RUN \
|
|||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
php83-dom \
|
php83-dom \
|
||||||
php83-intl \
|
php83-intl \
|
||||||
|
php83-opcache \
|
||||||
|
php83-pdo_mysql \
|
||||||
php83-pdo_pgsql \
|
php83-pdo_pgsql \
|
||||||
php83-pdo_sqlite \
|
php83-pdo_sqlite \
|
||||||
php83-pdo_mysql \
|
|
||||||
php83-tokenizer && \
|
php83-tokenizer && \
|
||||||
echo "**** configure nginx ****" && \
|
echo "**** configure nginx ****" && \
|
||||||
echo 'fastcgi_param PHP_AUTH_USER $remote_user; # Heimdall user authorization' >> \
|
echo 'fastcgi_param PHP_AUTH_USER $remote_user; # Heimdall user authorization' >> \
|
||||||
/etc/nginx/fastcgi_params && \
|
/etc/nginx/fastcgi_params && \
|
||||||
echo 'fastcgi_param PHP_AUTH_PW $http_authorization; # Heimdall user authorization' >> \
|
echo 'fastcgi_param PHP_AUTH_PW $http_authorization; # Heimdall user authorization' >> \
|
||||||
/etc/nginx/fastcgi_params && \
|
/etc/nginx/fastcgi_params && \
|
||||||
|
echo "**** configure php opcache ****" && \
|
||||||
|
echo 'opcache.validate_timestamps=0' >> \
|
||||||
|
/etc/php83/conf.d/00_opcache.ini && \
|
||||||
echo "**** install heimdall ****" && \
|
echo "**** install heimdall ****" && \
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/heimdall && \
|
/heimdall && \
|
||||||
|
|||||||
@@ -17,15 +17,19 @@ RUN \
|
|||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
php83-dom \
|
php83-dom \
|
||||||
php83-intl \
|
php83-intl \
|
||||||
|
php83-opcache \
|
||||||
|
php83-pdo_mysql \
|
||||||
php83-pdo_pgsql \
|
php83-pdo_pgsql \
|
||||||
php83-pdo_sqlite \
|
php83-pdo_sqlite \
|
||||||
php83-pdo_mysql \
|
|
||||||
php83-tokenizer && \
|
php83-tokenizer && \
|
||||||
echo "**** configure nginx ****" && \
|
echo "**** configure nginx ****" && \
|
||||||
echo 'fastcgi_param PHP_AUTH_USER $remote_user; # Heimdall user authorization' >> \
|
echo 'fastcgi_param PHP_AUTH_USER $remote_user; # Heimdall user authorization' >> \
|
||||||
/etc/nginx/fastcgi_params && \
|
/etc/nginx/fastcgi_params && \
|
||||||
echo 'fastcgi_param PHP_AUTH_PW $http_authorization; # Heimdall user authorization' >> \
|
echo 'fastcgi_param PHP_AUTH_PW $http_authorization; # Heimdall user authorization' >> \
|
||||||
/etc/nginx/fastcgi_params && \
|
/etc/nginx/fastcgi_params && \
|
||||||
|
echo "**** configure php opcache ****" && \
|
||||||
|
echo 'opcache.validate_timestamps=0' >> \
|
||||||
|
/etc/php83/conf.d/00_opcache.ini && \
|
||||||
echo "**** install heimdall ****" && \
|
echo "**** install heimdall ****" && \
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/heimdall && \
|
/heimdall && \
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ app_setup_block: |
|
|||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- { date: "07.03.24:", desc: "Enable the opcache and disable file revalidation."}
|
||||||
|
- { date: "06.03.24:", desc: "Existing users should update: site-confs/default.conf - Cleanup default site conf." }
|
||||||
- { date: "23.12.23:", desc: "Rebase to Alpine 3.19 with php 8.3."}
|
- { date: "23.12.23:", desc: "Rebase to Alpine 3.19 with php 8.3."}
|
||||||
- { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }
|
- { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }
|
||||||
- { date: "13.04.23:", desc: "Move ssl.conf include to default.conf." }
|
- { date: "13.04.23:", desc: "Move ssl.conf include to default.conf." }
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
## Version 2023/04/13 - Changelog: https://github.com/linuxserver/docker-heimdall/commits/master/root/defaults/nginx/site-confs/default.conf.sample
|
## Version 2024/03/06 - Changelog: https://github.com/linuxserver/docker-heimdall/commits/master/root/defaults/nginx/site-confs/default.conf.sample
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
@@ -19,11 +19,16 @@ server {
|
|||||||
#auth_basic "Restricted";
|
#auth_basic "Restricted";
|
||||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||||
|
|
||||||
try_files $uri $uri/ /index.html /index.php$is_args$args;
|
try_files $uri $uri/ /index.html /index.htm /index.php$is_args$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^(.+\.php)(.*)$ {
|
location ~ ^(.+\.php)(.*)$ {
|
||||||
|
# enable the next two lines for http auth
|
||||||
|
#auth_basic "Restricted";
|
||||||
|
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||||
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||||
|
if (!-f $document_root$fastcgi_script_name) { return 404; }
|
||||||
fastcgi_pass 127.0.0.1:9000;
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
include /etc/nginx/fastcgi_params;
|
include /etc/nginx/fastcgi_params;
|
||||||
|
|||||||
Reference in New Issue
Block a user