Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4.  
  5. server_name _;
  6. root /home/deploy/myproject/public;
  7.  
  8. passenger_enabled on;
  9. passenger_app_env development;
  10.  
  11. location /cable {
  12. passenger_app_group_name myapp_websocket;
  13. passenger_force_max_concurrent_requests_per_process 0;
  14. }
  15. location ~ \.php$ {
  16. try_files $uri =404;
  17. include /etc/nginx/fastcgi.conf;
  18. fastcgi_pass unix:/run/php/php7.1-fpm.sock;
  19. }
  20.  
  21. # Allow uploads up to 100MB in size
  22. client_max_body_size 100m;
  23.  
  24. location ~ ^/(assets|packs) {
  25. expires max;
  26. gzip_static on;
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement