Add files via upload

This commit is contained in:
HluthWigg 2023-02-18 22:03:59 +01:00 committed by GitHub
parent fa0988efd6
commit 786d6e2fc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 2962 additions and 2 deletions

67
config/fpm-garradin.conf Normal file
View file

@ -0,0 +1,67 @@
[global]
; Log to stderr
error_log = /dev/stderr
[garradin]
user = nobody
group = nobody
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
; a specific port;
; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses
; (IPv6 and IPv4-mapped) on a specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = /run/garradin.sock
listen.owner = nobody
listen.group = nobody
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
; Enable status page
pm.status_path = /fpm-status
; Ondemand process manager
pm = dynamic
; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
; CGI. The below defaults are based on a server without much resources. Don't
; forget to tweak pm.* to fit your needs.
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
; Note: This value is mandatory.
pm.max_children = 5
; The number of seconds after which an idle process will be killed.
; Note: Used only when pm is set to 'ondemand'
; Default Value: 10s
pm.process_idle_timeout = 10s;
; The number of requests each child process should execute before respawning.
; This can be useful to work around memory leaks in 3rd party libraries. For
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
; Default Value: 0
pm.max_requests = 1000
; Make sure the FPM workers can reach the environment variables for configuration
clear_env = no
; Catch output from PHP
catch_workers_output = yes
; Remove the 'child 10 said into stderr' prefix in the log and only show the actual message
decorate_workers_output = no
; Enable ping page to use in healthcheck
ping.path = /fpm-ping

View file

@ -0,0 +1,35 @@
server {
listen [::]:80 default_server; # port 80 is the usual HTTP port
listen 80 default_server;
server_name _; # no domain name (local)
sendfile off;
root /var/www/garradin/www; # root of the website
location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.php
try_files $uri $uri/ /_route.php?$query_string;
index index.php /_route.php;
}
location ~ \.php {
try_files $uri $uri/ /_route.php?$query_string;
include fastcgi.conf;
#fastcgi_pass 127.0.0.1:9000; # Si vous utilisez PHP-FPM (ou autre) en mode TCP et non sur une socket
fastcgi_pass unix:/run/garradin.sock; # Si vous utilisez PHP-FPM en mode socket
}
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
expires 5d;
}
# deny access to . files, for security
location ~ /\. {
log_not_found off;
deny all;
}
}

2
config/php-custom.ini Normal file
View file

@ -0,0 +1,2 @@
[Date]
date.timezone="Europe/Paris"

1952
config/phpFULL.ini Normal file

File diff suppressed because it is too large Load diff

26
config/supervisord.conf Normal file
View file

@ -0,0 +1,26 @@
[supervisord]
nodaemon=true
logfile=/dev/null
logfile_maxbytes=0
pidfile=/run/supervisord.pid
[program:php-fpm]
command=php-fpm81 -F
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
autorestart=false
startretries=0
[program:nginx]
command=nginx -g 'daemon off;'
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
autorestart=false
startretries=0
[supervisorctl]
serverurl=unix://%(here)s/supervisor.sock