2018-06-14 10:14:34 +01:00

23 lines
536 B
Plaintext

server {
listen 80 default_server;
listen 443 ssl;
server_name APP_URL_PLACEHOLDER;
root /var/www/html/public;
index index.html index.htm index.php;
ssl_certificate /config/keys/cert.crt;
ssl_certificate_key /config/keys/cert.key;
client_max_body_size 0;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
location /.env {
return 404;
}
}