SHARE
TWEET

Untitled

a guest Jun 16th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80;
  3.     index index.php index.html;
  4.     root /var/www/public;
  5.  
  6.     location / {
  7.         try_files $uri /index.php?$args;
  8.     }
  9.  
  10.     location /blocks-api {
  11.         proxy_pass http://yarn:8038;
  12.         proxy_http_version 1.1;
  13.         proxy_set_header Upgrade $http_upgrade;
  14.         proxy_set_header Connection 'upgrade';
  15.         proxy_set_header Host $host;
  16.         proxy_cache_bypass $http_upgrade;
  17.     }
  18.  
  19.     location ~ \.php$ {
  20.         fastcgi_split_path_info ^(.+\.php)(/.+)$;
  21.         fastcgi_pass app:9000;
  22.         fastcgi_index index.php;
  23.         include fastcgi_params;
  24.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  25.         fastcgi_param PATH_INFO $fastcgi_path_info;
  26.     }
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top