configure cal proxying
parent
d53276c587
commit
d84a8d50ff
|
@ -6,19 +6,7 @@ server {
|
||||||
ssl_certificate /etc/nginx/ssl/org.chain.crt;
|
ssl_certificate /etc/nginx/ssl/org.chain.crt;
|
||||||
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
|
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
|
||||||
|
|
||||||
root /opt/book;
|
location / {
|
||||||
|
proxy_pass http://localhost:3000;
|
||||||
index index.html index.htm index.php;
|
|
||||||
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
include snippets/fastcgi-php.conf;
|
|
||||||
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
|
|
||||||
fastcgi_param HTACCESS on;
|
|
||||||
proxy_read_timeout 800;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!-e $request_filename){
|
|
||||||
rewrite ^(.*)$ /index.php?/$1 last;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue