| | |
| | | |
| | | user nginx; |
| | | worker_processes auto; |
| | | |
| | | error_log /var/log/nginx/error.log notice; |
| | | pid /var/run/nginx.pid; |
| | | |
| | | |
| | | events { |
| | | worker_connections 2048; |
| | | } |
| | | |
| | | |
| | | http { |
| | | include /etc/nginx/mime.types; |
| | |
| | | |
| | | # Http |
| | | location /api/ { |
| | | # rewrite ^/api/(.*)$ /$1 break; # if you wanna remove proxy prefix |
| | | proxy_pass http://api_backend/api/; |
| | | proxy_set_header Host $host; |
| | | proxy_set_header X-Real-IP $remote_addr; |
| | |
| | | # ssl_certificate_key /path/to/key.pem; |
| | | |
| | | error_page 500 502 503 504 /50x.html; |
| | | |
| | | location = /50x.html { |
| | | root html; |
| | | } |
| | |
| | | #gzip on; |
| | | |
| | | include /etc/nginx/conf.d/*.conf; |
| | | |
| | | } |