Browse Source

feat: 内网修改

Azure 2 years ago
parent
commit
da15dbea40
3 changed files with 7 additions and 7 deletions
  1. 5 5
      nuxt.config.js
  2. 1 1
      server/config/db.js
  3. 1 1
      server/controller/auth.js

+ 5 - 5
nuxt.config.js

@@ -10,7 +10,7 @@ module.exports = {
       { charset: 'utf-8' },
       { name: 'viewport', content: 'width=device-width, initial-scale=1' },
       { hid: 'description', name: 'description', content: process.env.npm_package_description ||
-        'SEEC软件工程教育云平台,一个旨在为在校学生或行业内人士,提供系统性自主学习软件工程领域知识服务的平台' }
+          'SEEC软件工程教育云平台,一个旨在为在校学生或行业内人士,提供系统性自主学习软件工程领域知识服务的平台' }
     ],
     link: [
       { rel: 'icon', type: 'image/x-icon', href: '/seec.ico' }
@@ -33,7 +33,7 @@ module.exports = {
   plugins: [
     {src: '@/plugins/element-ui', ssr: true},
     '~/plugins/api',
-     '~plugins/echarts'
+    '~plugins/echarts'
   ],
   /*
   ** Nuxt.js dev-modules
@@ -84,8 +84,8 @@ module.exports = {
   // },
 
   server: {
-  //   https: true
-    host: 'localhost',
-    port: 3000
+    //   https: true
+    host: '0.0.0.0',
+    port: 3111
   }
 }

+ 1 - 1
server/config/db.js

@@ -1,6 +1,6 @@
 const Sequelize = require('sequelize');
 
-const sequelize = new Sequelize('mysql://root:root@192.168.80.128:3306/seec_portal', {
+const sequelize = new Sequelize('mysql://root:NJU67seecoder@localhost:3306/seec_portal', {
     define: {timestamps: false},
         timezone: '+08:00' //东八时区
     });

+ 1 - 1
server/controller/auth.js

@@ -5,7 +5,7 @@ class AuthController{
     static checkClient(ctx){
         const allowed_client_ids = ['seec-portal', 'seec-seec', 'seec-mooc', 'seec-helper'];
         const allowed_redirect_domains = ['localhost:3000', 'localhost:8000', 'p.seecoder.cn', 'seec.seecoder.cn', 'mooc.seecoder.cn', 'helper.seecoder.cn',
-        'mooc-test.seecoder.cn', 'seec-test.seecoder.cn', 'p-test.seecoder.cn', 'helper-test.seecoder.cn','seecoder.cn'];
+        'mooc-test.seecoder.cn', 'seec-test.seecoder.cn', 'p-test.seecoder.cn', 'helper-test.seecoder.cn','seecoder.cn','114.212.202.161','localhost:8090','localhost:80','114.212.202.161:80','114.212.202.161:8090'];
 
         const query = ctx.query;
         // console.log('query', query);