Files
money/app/docker/nginx.conf

27 lines
795 B
Nginx Configuration File
Raw Normal View History

2021-03-15 17:41:25 -03:00
server {
listen 80;
server_name money_app;
index index.php;
error_log /code/app/logs/error.log;
2021-03-30 16:21:02 -03:00
access_log /code/app/logs/access.log;
2021-03-15 17:41:25 -03:00
root /code/app/public;
location / {
try_files $uri /index.php$is_args$args;
}
2021-03-18 23:17:19 -03:00
add_header 'Access-Control-Allow-Origin' 'http://localhost:8080';
2021-03-19 22:49:09 -03:00
add_header 'Access-Control-Allow-Methods' 'GET,POST,PUT,DELETE,OPTIONS';
add_header "Access-Control-Allow-Headers" "Authorization, Origin, X-Requested-With, Content-Type, Accept";
2021-03-18 23:17:19 -03:00
2021-03-15 17:41:25 -03:00
location ~ \.php {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_index index.php;
fastcgi_pass app-php:9000;
}
}