1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- upstream app{
- server app:8988;
- }
- server {
- listen 80 default_server;
-
-
- index index.html index.php;
- server_name *.enfrancais.fr;
- charset utf-8;
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy true;
- proxy_set_header X-Ssl on;
- proxy_pass http://app;
- proxy_redirect off;
- }
-
- location @api {
- rewrite ^/api/(.*)$ /api/index.php;
- }
- location /api {
-
-
- alias /var/www/html/api/src/web/;
-
-
- try_files $uri $uri/ @api;
- error_log /var/log/nginx/api-error.log debug;
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass api:9000;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- fastcgi_intercept_errors off;
- fastcgi_buffer_size 16k;
- fastcgi_buffers 4 16k;
- fastcgi_read_timeout 150;
- }
- }
- location = /favicon.ico { access_log off; log_not_found off; }
- location = /robots.txt { access_log off; log_not_found off; }
- access_log on;
- error_log /var/log/nginx/app-error.log error;
- sendfile off;
- client_max_body_size 100m;
-
-
-
-
-
-
-
-
-
-
-
- location ~ /\.ht {
- deny all;
- }
- }
|