maybe fix php now?

This commit is contained in:
Lee 2023-07-04 17:14:31 +01:00
parent 8b3d364bf9
commit 40cc49f4c8
2 changed files with 13 additions and 10 deletions

@ -12,5 +12,8 @@ COPY ./docker/nginx.conf /etc/nginx/nginx.conf
COPY ./upload.php /tmp/upload.php COPY ./upload.php /tmp/upload.php
COPY ./docker/start.sh /start.sh COPY ./docker/start.sh /start.sh
# Start php dependencies
RUN service php8.1-fpm start
# Start server # Start server
CMD ["bash", "/start.sh"] CMD ["bash", "/start.sh"]

@ -23,16 +23,6 @@ http {
client_max_body_size 500M; client_max_body_size 500M;
# TCP optimizations
tcp_nopush on;
tcp_nodelay on;
# file shit
sendfile on;
# Keep connections alive for 15 seconds
keepalive_timeout 15;
location ~ \.php$ { location ~ \.php$ {
try_files $uri =404; try_files $uri =404;
@ -47,6 +37,16 @@ http {
location / { location / {
expires 7d; expires 7d;
# TCP optimizations
tcp_nopush on;
tcp_nodelay on;
# file shit
sendfile on;
# Keep connections alive for 15 seconds
keepalive_timeout 15;
open_file_cache max=1000 inactive=60s; open_file_cache max=1000 inactive=60s;
open_file_cache_valid 60s; open_file_cache_valid 60s;
open_file_cache_min_uses 1; open_file_cache_min_uses 1;