Advertisement
Guest User

Untitled

a guest
Sep 4th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.12 KB | None | 0 0
  1. user nginx;
  2. worker_processes auto;
  3. error_log /var/log/nginx/error.log;
  4. pid /run/nginx.pid;
  5.  
  6. include /usr/share/nginx/modules/*.conf;
  7.  
  8. events {
  9.     worker_connections 1024;
  10. }
  11.  
  12. http {
  13.     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  14.                         '$status $body_bytes_sent "$http_referer" '
  15.                         '"$http_user_agent" "$http_x_forwarded_for"';
  16.  
  17.     access_log  /var/log/nginx/access.log  main;
  18.  
  19.     sendfile            on;
  20.     tcp_nopush          on;
  21.     tcp_nodelay         on;
  22.     keepalive_timeout   65;
  23.     types_hash_max_size 2048;
  24.  
  25.     include             /etc/nginx/mime.types;
  26.     default_type        application/octet-stream;
  27.  
  28.     server {
  29.         listen 80 default_server;
  30.  
  31.         server_name _;
  32.  
  33.         location / {
  34.             root   /var/www/frontend/app/build;
  35.             index  index.html index.htm;
  36.         }
  37.  
  38.         location /undefined/round {
  39.                 proxy_pass http://localhost:8080/round;
  40.         }
  41.  
  42.         location /undefined/rules {
  43.                 proxy_pass http://localhost:8080/rules;
  44.         }
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement