mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-20 03:21:47 +02:00
Move configuration to dotenv
This commit is contained in:
parent
c6c6b5da00
commit
e155078502
3
backend/karaoqueue-backend/.env.example
Normal file
3
backend/karaoqueue-backend/.env.example
Normal file
@ -0,0 +1,3 @@
|
||||
USERNAME=admin
|
||||
PASSWORD=pass
|
||||
PORT=3000
|
@ -6,10 +6,14 @@ import { StatisticsController } from "./controllers/statistics.controller";
|
||||
import { AuthenticationController } from "./controllers/auth.controller";
|
||||
import { RpcController } from "./controllers/rpc.controller";
|
||||
|
||||
|
||||
import * as dotenv from "dotenv";
|
||||
dotenv.config();
|
||||
|
||||
const app = createExpressServer({
|
||||
routePrefix: "/api",
|
||||
cors: true,
|
||||
controllers: [QueueController, SongController, StatisticsController, AuthenticationController, RpcController]
|
||||
});
|
||||
|
||||
app.listen(3000);
|
||||
app.listen(process.env.KQUEUE_PORT);
|
Loading…
x
Reference in New Issue
Block a user