Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name www.example.com;
- root /var/www/prosklad/public;
- gzip on;
- gzip_disable "msie6";
- gzip_vary on;
- gzip_proxied any;
- gzip_comp_level 6;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
- client_max_body_size 3072m;
- access_log /var/log/nginx/prosklad.access.log;
- error_log /var/log/nginx/prosklad.error.log;
- # Point index to the Laravel front controller.
- location /socket.io {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy true;
- proxy_pass http://localhost:6001;
- proxy_redirect off;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "Upgrade";
- }
- index index.php;
- location = /ping {
- default_type application/json;
- return 200 '{"ping": "Ok"}';
- }
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- ----------------------------------------------------------------------
- # New landing nuxt.js static page
- location ~ / {
- alias /var/www/landing/dist/;
- index 200.html;
- try_files $uri $uri/ /200.html;
- }
- location /snt {
- alias /var/www/landing/dist/;
- index index.html;
- try_files $uri $uri/ /index.html;
- }
- location /tis {
- alias /var/www/landing/dist/;
- index index.html;
- try_files $uri $uri/ /index.html;
- }
- location /esf {
- alias /var/www/landing/dist/;
- index index.html;
- try_files $uri $uri/ /index.html;
- }
- location /for-clients {
- alias /var/www/landing/dist/;
- index index.html;
- try_files $uri $uri/ /index.html;
- }
- location /landing {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy true;
- proxy_pass http://localhost:3000;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "Upgrade";
- }
- -------------------------------------------------------------------------
- location ~ \.php$ {
- try_files $uri /index.php =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass unix:/run/php/php7.4-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- fastcgi_read_timeout 1000;
- }
- listen 80; # managed by Certbot
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement