🚦 Added traefik

This commit is contained in:
2021-10-19 07:36:35 -07:00
parent 84e2a10d1b
commit d84b02ef82
2 changed files with 30 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ export const io = new Server(httpServer, {
cors: {
origin: "*",
methods: ["GET", "POST"],
}
},
});
// configure app to use bodyParser for
@@ -26,7 +26,7 @@ app.use(bodyParser.urlencoded({ extended: true }));
const port: number = Number(process.env.PORT) || 8050; // set our port
// set rabbitMQ host
const rabbitMQConnectionString = process.env.RABBITMQ_URI || "amqp://localhost";
const rabbitMQConnectionString = process.env.RABBITMQ_URI || "amqp://localhost:5672";
// Send index.html on root request
app.use(express.static("dist"));