Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 8.5-edge.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ RUN wget -P /tmp https://github.com/just-containers/s6-overlay/releases/download
esac; \
rm -rf /tmp/*;

COPY files/general files/php85 /
COPY files/nginx files/php85 /

WORKDIR /www

Expand Down
65 changes: 65 additions & 0 deletions files/nginx/etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
user nginx;
worker_processes auto;
pcre_jit on;
pid /var/run/nginx.pid;
daemon off;

events {
worker_connections 1024;
}

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server_tokens off;
client_max_body_size 1m;
keepalive_timeout 65;
sendfile on;
tcp_nodelay on;
gzip on;
gzip_vary on;
gzip_static on;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /dev/stdout main;
error_log /dev/stdout warn;

real_ip_header X-Forwarded-For;
set_real_ip_from 10.0.0.0/8;
set_real_ip_from 172.16.0.0/12;
set_real_ip_from 192.168.0.0/16;

server {
listen 80 default_server;
root /www/public;
index index.php index.html;

location / {
try_files $uri $uri/ /index.php$is_args$args;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
}

location ~ ^/php-fpm-ping$ {
access_log off;
allow 127.0.0.1;
deny all;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}

location ~ ^/favicon.ico$ {
access_log off;
}
}
}

# Include other configuration files
include /etc/nginx/http.d/*.conf;
File renamed without changes.
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions files/nginx/etc/s6-overlay/s6-rc.d/nginx/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/with-contenv sh
exec nginx
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions files/php85/etc/s6-overlay/s6-rc.d/php-fpm/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
longrun
Empty file.