Jobs setup
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
server {
|
||||
listen 0.0.0.0:8080;
|
||||
listen 81;
|
||||
root /app/api/public;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
access_log /var/logs/nginx/access.log;
|
||||
error_log /var/logs/nginx/error.log;
|
||||
access_log /var/logs/nginx/api.access.log;
|
||||
error_log /var/logs/nginx/api.error.log;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
try_files $uri /index.php$is_args$args;
|
||||
}
|
||||
location ~ \.php$ {
|
||||
location ~ \.php {
|
||||
if ($request_method = 'OPTIONS') {
|
||||
add_header 'Access-Control-Allow-Origin' '*';
|
||||
add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
|
||||
@ -26,11 +26,12 @@ server {
|
||||
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
include fastcgi_params;
|
||||
fastcgi_pass api:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param REQUEST_URI $request_uri;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user