Advertisement
MrKira

Untitled

May 24th, 2022
873
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.49 KB | None | 0 0
  1. server {
  2.     listen  80;
  3.     server_name project.ru *.project.ru;
  4.     charset     utf-8;
  5.  
  6.     client_max_body_size        6144M;
  7.     client_body_buffer_size     4M;
  8.  
  9.     location ~ ^/api/v1/ {
  10.       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  11.       proxy_set_header X-Forwarded-Proto $scheme;
  12.       proxy_set_header Host $http_host;
  13.       proxy_redirect off;
  14.       proxy_pass http://nginx:8000;
  15.     }
  16.  
  17.     location / {
  18.       proxy_pass http://web_frontend:8005;
  19.     }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement