Skip to content
geelevelgeelevel

Production Form Generator Usage ​

    1. Need to modify web/src/view/systemTools/formCreate/index.vue
    <template>
      <div style="height:80vh">
        <iframe width="100%" height="100%" :src="`${basePath}:${basePort}/form-generator/#/`" frameborder="0" />
      </div>
    </template>

    Modify to

    <template>
      <div style="height:80vh">
        <iframe width="100%" height="100%" :src="`${basePath}/form-generator/#/`" frameborder="0" />
      </div>
    </template>
    1. Add and modify nginx configuration
        location  /form-generator {
            proxy_set_header Host $http_host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
        	proxy_pass http://127.0.0.1:8888;
        }
    1. Also configure web/.env.production as
    ENV = 'production'
    
    VITE_CLI_PORT = 8080
    VITE_SERVER_PORT = 8888
    VITE_BASE_API = /api
    # Modify below to your online domain
    VITE_BASE_PATH = https://your-online-domain