Update config.js and relative files

This commit is contained in:
Namhyeon Go 2020-07-26 18:53:25 +09:00
parent 893e35c257
commit e204d0d467
3 changed files with 15 additions and 5 deletions

4
app.js
View File

@ -148,7 +148,7 @@ function require(FN) {
// get configuration variables
/////////////////////////////////////////////////////////////////////////////////
var __config = require("config");
var __config = require("config").config;
/////////////////////////////////////////////////////////////////////////////////
// Load script, and call app.main()
@ -220,4 +220,4 @@ function main() {
}
}
main();
main();

View File

@ -1,10 +1,9 @@
var FILE = require("lib/file");
var serverUrl = "http://158.247.196.146/";
$(document).ready(function() {
$(".show-logged").css("display", "none");
$("#loginform").attr("action", serverUrl);
$("#loginform").attr("action", __config.webapp.baseURL);
$("#loginform").ajaxForm({
beforeSubmit: function() {
console.log("로그인을 시도합니다. 잠시만 기다려 주세요.");

View File

@ -1 +1,12 @@
exports.appName = "welsonjs";
exports.config = {
appName: "welsonjs",
shadowsocks: {
host: "158.247.196.146",
port: 8388,
password: "korea82",
chiper: "chacha20-ietf-poly1305"
},
webapp: {
baseURL: "http://158.247.196.146/"
}
};