upgrade alpine+glpi
Some checks failed
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/tag Build encountered an error

This commit is contained in:
2023-12-13 11:39:04 +01:00
parent 4c0d5f6ef9
commit cbc162e79c
10 changed files with 12 additions and 16 deletions

View File

@@ -0,0 +1 @@
daemon off;

View File

@@ -0,0 +1,60 @@
client_body_temp_path /tmp/client_temp;
proxy_temp_path /tmp/proxy_temp_path;
fastcgi_temp_path /tmp/fastcgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;
server {
listen 80 default_server;
server_name _;
access_log /logs/nginx.access.log main;
sendfile off;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
root /var/www/glpi/public;
index index.php index.html;
# Allow fpm ping and status from localhost
location ~ ^/(fpm-status|fpm-ping)$ {
access_log off;
allow 127.0.0.1;
deny all;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi.conf;
fastcgi_pass 127.0.0.1:9000;
}
location / {
try_files $uri /index.php$is_args$args;
}
location ~ ^/index\.php$ {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
# Deny access to . files, for security
location ~ /\. {
log_not_found off;
deny all;
}
}
gzip on;
gzip_proxied any;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js image/x-icon font/woff2 font/woff application/x-font-woff;
gzip_disable "msie6";
etag on;
if_modified_since exact;
add_header Pragma "public";
add_header Cache-Control "max-age=31536000, public";

View File

@@ -0,0 +1,6 @@
session.cookie_httponly = on
memory_limit = 256M
file_uploads = on
max_execution_time = 600
session.auto_start = off
session.use_trans_sid = 0

View File

@@ -0,0 +1,11 @@
[www]
user = nginx
group = www-data
listen = 127.0.0.1:9000
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
ping.path = /fpm-ping
pm.status_path = /fpm-status

13
src/rootfs/start.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
chown -R nginx:www-data /logs /config /files /marketplace
chmod -R a-x,a=rX,ug+w /logs /config /files /marketplace
if [ "$INSTALL_OK" = "1" ] ; then
if [ -f /var/www/glpi/install/install.php ] ; then
rm /var/www/glpi/install/install.php
fi
fi
/usr/sbin/php-fpm*
/usr/sbin/nginx

View File

@@ -0,0 +1,5 @@
<?php
define('GLPI_CONFIG_DIR', '/config');
define('GLPI_VAR_DIR', '/files');
define('GLPI_MARKETPLACE_DIR', '/marketplace');