• Почему при использовании proxy_pass не происходит редирект?

    @kapmen Автор вопроса
    server {
    
        listen [::]:443 ssl ipv6only=on; # managed by Certbot
        listen 443 ssl; # managed by Certbot
        ssl_certificate /etc/letsencrypt/live/site.site/fullchain.pem; # managed by Certbot
        ssl_certificate_key /etc/letsencrypt/live/site.site/privkey.pem; # managed by Certbot
        include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
        ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
    
    
            server_name site.site www.site.site;
    
            root /var/www/html/front/build;
    
            index index.html;
    
            location / {
                    try_files $uri $uri/ /index.html;
            }
    
            location /admin/ {
                    proxy_pass http://localhost:3000/;
            }
    
    }
    вот целиковый
  • Где сохраняется проект после сборке в npm?

    @kapmen Автор вопроса
    Kentavr16, спасибо, а то главное проект запускается, а где лежит не пойму)
  • Где сохраняется проект после сборке в npm?

    @kapmen Автор вопроса
    читал, возможно не правильно, но там не вижу куда собирается

    packages.json

    GNU nano 4.8                                                                                 /home/user1/gitlab/uznalub_admin_front/package.json                                                                                           {
      "name": "uznalub-admin",
      "description": "Most Powerful & Comprehensive Free MUI React NextJS Admin Dashboard Template built for developers! ",
      "license": "MIT",
      "version": "0.0.4",
      "author": {
        "name": "ThemeSelection",
        "url": "https://themeselection.com/"
      },
      "bugs": {
        "url": "https://github.com/themeselection/materio-mui-react-nextjs-admin-template-free/issues"
      },
      "private": false,
      "repository": {
        "type": "git",
        "url": "https://github.com/themeselection/materio-mui-react-nextjs-admin-template-free.git"
      },
      "homepage": "https://themeselection.com/products/materio-free-mui-react-nextjs-admin-template/",
      "keywords": [
        "react",
        "javascript",
        "admin",
        "dashboard",
        "material-design",
        "nextjs",
        "material-ui",
        "admin-dashboard",
        "free",
        "mui",
        "admin-template",
        "admin-panel",
        "freebies",
        "nextjs-template",
        "react-dashboard",
        "themeselection"
      ],
      "scripts": {
        "dev": "next dev",
        "build": "next build",
        "start": "next start -p 3001",
        "stop": "npx kill-port 3001",
        "export": "next export",
        "lint": "eslint --fix \"src/**/*.{js,jsx}\"",
        "format": "prettier --write \"src/**/*.{js,jsx}\""
      },
    "dependencies": {
        "@emotion/cache": "^11.6.0",
        "@emotion/react": "^11.7.0",
        "@emotion/server": "^11.4.0",
        "@emotion/styled": "^11.6.0",
        "@mui/icons-material": "^5.14.11",
        "@mui/lab": "^5.0.0-alpha.70",
        "@mui/material": "^5.4.3",
        "@mui/x-date-pickers": "^6.16.3",
        "@popperjs/core": "^2.11.2",
        "@reduxjs/toolkit": "^1.9.7",
        "@tanstack/match-sorter-utils": "^8.8.4",
        "@tanstack/react-table": "^8.10.7",
        "apexcharts-clevision": "3.28.5",
        "axios": "^1.5.1",
        "babel-eslint": "^10.1.0",
        "clsx": "^1.1.1",
        "dayjs": "^1.11.10",
        "mdi-material-ui": "^7.1.0",
        "next": "12.1.0",
        "nprogress": "^0.2.0",
        "react": "17.0.2",
        "react-apexcharts": "^1.3.9",
        "react-datepicker": "^4.21.0",
        "react-dom": "17.0.2",
        "react-perfect-scrollbar": "^1.5.8",
        "react-popper": "^2.2.5",
        "react-redux": "^8.1.3",
        "react-select": "^5.7.7",
        "uuid": "^9.0.1"
      },
      "devDependencies": {
        "eslint": "^7.32.0",
        "eslint-config-next": "12.0.4",
        "eslint-config-prettier": "^8.3.0",
        "eslint-import-resolver-alias": "^1.1.2",
        "eslint-import-resolver-typescript": "^2.5.0",
        "eslint-plugin-import": "^2.25.4",
        "next-transpile-modules": "^9.0.0",
        "prettier": "2.5.1"
      }
    }