feat: replace apache2 with nginx + php-fpm
BREAKING CHANGE: The `apache2` webserver has been replaced with `nginx` and `php-fpm`, be sure to uninstall `apache2` and clean related configuration files from your system before upgrading.
This commit is contained in:
parent
2f205544c2
commit
ec45717ccf
8 changed files with 114 additions and 48 deletions
42
installer/nginx/libretime.conf
Normal file
42
installer/nginx/libretime.conf
Normal file
|
@ -0,0 +1,42 @@
|
|||
server {
|
||||
listen @@LISTEN_PORT@@;
|
||||
listen [::]:@@LISTEN_PORT@@;
|
||||
|
||||
access_log /var/log/nginx/libretime.access.log;
|
||||
error_log /var/log/nginx/libretime.error.log;
|
||||
|
||||
root @@LEGACY_WEB_ROOT@@/public;
|
||||
|
||||
index index.php index.html index.htm;
|
||||
|
||||
client_max_body_size 512M;
|
||||
client_body_timeout 300s;
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_buffers 64 4K;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
|
||||
# try_files $uri =404;
|
||||
try_files $fastcgi_script_name =404;
|
||||
|
||||
include fastcgi_params;
|
||||
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
set $path_info $fastcgi_path_info;
|
||||
fastcgi_param PATH_INFO $path_info;
|
||||
include fastcgi_params;
|
||||
|
||||
fastcgi_index index.php;
|
||||
fastcgi_pass unix:/run/libretime-legacy.sock;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location ~ ^/(api/v2|api-auth) {
|
||||
include proxy_params;
|
||||
proxy_redirect off;
|
||||
proxy_pass http://127.0.0.1:8081;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue