You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.3 KiB

  1. pid /tmp/nginx.pid;
  2. worker_processes 1;
  3. events {
  4. worker_connections 1024;
  5. }
  6. http {
  7. server_tokens off;
  8. add_header X-Frame-Options SAMEORIGIN;
  9. add_header X-Content-Type-Options nosniff;
  10. add_header X-XSS-Protection "1; mode=block";
  11. client_body_temp_path /tmp/client_body;
  12. fastcgi_temp_path /tmp/fastcgi_temp;
  13. proxy_temp_path /tmp/proxy_temp;
  14. scgi_temp_path /tmp/scgi_temp;
  15. uwsgi_temp_path /tmp/uwsgi_temp;
  16. gzip on;
  17. gzip_comp_level 6;
  18. gzip_min_length 1024;
  19. gzip_buffers 4 32k;
  20. gzip_types text/plain application/javascript text/css;
  21. gzip_vary on;
  22. keepalive_timeout 65;
  23. proxy_buffer_size 128k;
  24. proxy_buffers 4 256k;
  25. proxy_busy_buffers_size 256k;
  26. server {
  27. listen 8080;
  28. location /basket-api {
  29. proxy_pass http://basket;
  30. proxy_redirect off;
  31. proxy_set_header Host $host;
  32. }
  33. location /catalog-api {
  34. proxy_pass http://catalog;
  35. proxy_redirect off;
  36. proxy_set_header Host $host;
  37. }
  38. location /identity {
  39. proxy_pass http://identity;
  40. proxy_redirect off;
  41. proxy_set_header Host $host;
  42. }
  43. location /ordering-api {
  44. proxy_pass http://ordering;
  45. proxy_redirect off;
  46. proxy_set_header Host $host;
  47. }
  48. location /webmvc {
  49. proxy_pass http://webmvc;
  50. proxy_redirect off;
  51. proxy_set_header Host $host;
  52. }
  53. location /webstatus {
  54. proxy_pass http://webstatus;
  55. proxy_redirect off;
  56. proxy_set_header Host $host;
  57. }
  58. location /marketing-api {
  59. proxy_pass http://marketing;
  60. proxy_redirect off;
  61. proxy_set_header Host $host;
  62. }
  63. location /payment-api {
  64. proxy_pass http://payment;
  65. proxy_redirect off;
  66. proxy_set_header Host $host;
  67. }
  68. location /locations-api {
  69. proxy_pass http://locations;
  70. proxy_redirect off;
  71. proxy_set_header Host $host;
  72. }
  73. location / {
  74. proxy_pass http://webspa;
  75. proxy_redirect off;
  76. proxy_set_header Host $host;
  77. }
  78. }
  79. }