44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html/public;
|
|
index index.php;
|
|
|
|
client_max_body_size 64M;
|
|
|
|
# Logging
|
|
access_log /dev/stdout;
|
|
error_log /dev/stderr;
|
|
|
|
# Handle all requests through PHP
|
|
location / {
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
}
|
|
|
|
# PHP-FPM configuration
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass opnform-api:9000;
|
|
fastcgi_index index.php;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/public/index.php;
|
|
fastcgi_param DOCUMENT_ROOT /usr/share/nginx/html/public;
|
|
fastcgi_param REQUEST_URI $request_uri;
|
|
fastcgi_read_timeout 300;
|
|
}
|
|
|
|
# Deny access to . files
|
|
location ~ /\. {
|
|
deny all;
|
|
}
|
|
}
|
|
}
|