back/config: replace localhost with 127.0.0.1
This commit is contained in:
parent
ae603362e9
commit
366e48757e
@ -4,8 +4,8 @@
|
||||
app: {
|
||||
listen_addr: '127.0.0.1',
|
||||
port: 4899,
|
||||
public_url: "http://localhost:4899",
|
||||
public_websocket_url: "ws://localhost:4899",
|
||||
public_url: "http://127.0.0.1:4899",
|
||||
public_websocket_url: "ws://127.0.0.1:4899",
|
||||
name: 'Example App',
|
||||
contact_email: 'contact@example.net',
|
||||
display_email_warning: true,
|
||||
@ -36,7 +36,7 @@
|
||||
},
|
||||
mysql: {
|
||||
connectionLimit: 10,
|
||||
host: "localhost",
|
||||
host: "127.0.0.1",
|
||||
user: "root",
|
||||
password: "",
|
||||
database: "swaf",
|
||||
|
@ -3,7 +3,7 @@
|
||||
approval_mode: true,
|
||||
},
|
||||
mysql: {
|
||||
host: "localhost",
|
||||
host: "127.0.0.1",
|
||||
user: "root",
|
||||
password: "",
|
||||
database: "swaf_test",
|
||||
|
@ -16,6 +16,5 @@ module.exports = {
|
||||
'**/test/**/*.test.ts'
|
||||
],
|
||||
testEnvironment: 'node',
|
||||
testTimeout: 60000,
|
||||
resolver: "jest-ts-webcompat-resolver",
|
||||
};
|
||||
|
@ -19,7 +19,7 @@
|
||||
"compile": "yarn clean && yarn prepare-sources && tsc --build",
|
||||
"build": "yarn compile && node . pre-compile-views && node scripts/dist.js",
|
||||
"build-production": "NODE_ENV=production yarn build",
|
||||
"dev": "yarn compile && concurrently -k -n \"Maildev,Typescript,ViewPreCompile,Node\" -p \"[{name}]\" -c \"yellow,blue,red,green\" \"maildev\" \"tsc --build --watch --preserveWatchOutput\" \"nodemon -i public -i intermediates -- pre-compile-views --watch\" \"nodemon -i public -i intermediates\"",
|
||||
"dev": "yarn compile && concurrently -k -n \"Maildev,Typescript,ViewPreCompile,Node\" -p \"[{name}]\" -c \"yellow,blue,red,green\" \"maildev --ip 127.0.0.1\" \"tsc --build --watch --preserveWatchOutput\" \"nodemon -i public -i intermediates -- pre-compile-views --watch\" \"nodemon -i public -i intermediates\"",
|
||||
"lint": "eslint .",
|
||||
"release": "yarn build && yarn lint && yarn test && cd dist && yarn publish"
|
||||
},
|
||||
|
@ -21,7 +21,7 @@ export default class ExpressAppComponent extends ApplicationComponent {
|
||||
|
||||
public async start(app: Express): Promise<void> {
|
||||
this.server = app.listen(this.port, this.addr, () => {
|
||||
logger.info(`Web server running on http://${this.addr}:${this.port}.`);
|
||||
logger.info(`Web server running on http://${this.addr}:${this.port}`);
|
||||
});
|
||||
|
||||
// Proxy
|
||||
|
@ -1,7 +1,7 @@
|
||||
import MailDev, {Mail} from "maildev";
|
||||
|
||||
export const MAIL_SERVER = new MailDev({
|
||||
ip: 'localhost',
|
||||
ip: '127.0.0.1',
|
||||
});
|
||||
|
||||
export async function setupMailServer(): Promise<void> {
|
||||
|
Loading…
Reference in New Issue
Block a user