r3-conf
parent
5f2d9509ba
commit
19f01b68e2
|
@ -7,10 +7,6 @@ upstream websocket {
|
||||||
server 127.0.0.1:3105;
|
server 127.0.0.1:3105;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream php {
|
|
||||||
server 127.0.0.1:9001;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Now define our sites
|
# Now define our sites
|
||||||
server {
|
server {
|
||||||
|
|
||||||
|
@ -31,7 +27,7 @@ server {
|
||||||
root /usr/share/cybafelo/r3js.org/$app;
|
root /usr/share/cybafelo/r3js.org/$app;
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
|
|
||||||
if ($request_method = OPTIONS) {
|
if ($request_method = OPTIONS) {
|
||||||
add_header Access-Control-Allow-Origin $http_origin;
|
add_header Access-Control-Allow-Origin $http_origin;
|
||||||
add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS";
|
add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS";
|
||||||
|
@ -43,14 +39,14 @@ server {
|
||||||
add_header Access-Control-Allow-Origin $http_origin;
|
add_header Access-Control-Allow-Origin $http_origin;
|
||||||
add_header Access-Control-Allow-Credentials true;
|
add_header Access-Control-Allow-Credentials true;
|
||||||
|
|
||||||
fastcgi_pass php;
|
try_files $uri =404;
|
||||||
fastcgi_index index.php;
|
include fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
|
||||||
fastcgi_param SCRIPT_URL $request_uri;
|
fastcgi_index index.php;
|
||||||
fastcgi_param SERVER_NAME $http_host;
|
fastcgi_intercept_errors on;
|
||||||
include fastcgi_params;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = / {
|
location = / {
|
||||||
if ($request_method = OPTIONS) {
|
if ($request_method = OPTIONS) {
|
||||||
add_header Access-Control-Allow-Origin $http_origin;
|
add_header Access-Control-Allow-Origin $http_origin;
|
||||||
|
|
Loading…
Reference in New Issue