2023-07-04 15:39:08 +00:00
|
|
|
events {
|
|
|
|
worker_connections 4096;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
2023-07-04 15:46:10 +00:00
|
|
|
access_log /dev/stdout;
|
2023-07-04 15:56:47 +00:00
|
|
|
error_log /dev/stdout;
|
2023-07-04 16:56:28 +00:00
|
|
|
|
2023-07-04 16:46:31 +00:00
|
|
|
include mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
tcp_nopush on;
|
|
|
|
tcp_nodelay on;
|
|
|
|
keepalive_timeout 15;
|
|
|
|
types_hash_max_size 4096;
|
2023-07-04 15:46:10 +00:00
|
|
|
|
2023-07-04 15:37:53 +00:00
|
|
|
server {
|
|
|
|
server_name _;
|
|
|
|
listen 80;
|
2023-07-04 16:46:31 +00:00
|
|
|
|
2023-07-04 15:37:53 +00:00
|
|
|
root /var/www/html;
|
|
|
|
index index.html index.htm;
|
|
|
|
|
2023-07-04 16:56:28 +00:00
|
|
|
client_max_body_size 500M; # Will get replaced by the environment variable MAX_UPLOAD_SIZE
|
2023-07-04 15:37:53 +00:00
|
|
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
try_files $uri =404;
|
|
|
|
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
2023-07-04 16:02:32 +00:00
|
|
|
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
|
2023-07-04 15:37:53 +00:00
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
include fastcgi_params;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
expires 7d;
|
|
|
|
|
|
|
|
# Serve the file directly from disk
|
|
|
|
try_files $uri $uri/;
|
|
|
|
}
|
2023-07-04 15:32:18 +00:00
|
|
|
}
|
2023-07-04 15:37:53 +00:00
|
|
|
}
|