mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
fix deployment of producer
This commit is contained in:
@@ -610,8 +610,6 @@ function isBot(userAgent: string) {
|
||||
|
||||
export async function isAllowedToLog(project_id: string, website: string, ip: string, userAgent: string) {
|
||||
|
||||
console.log({ userAgent });
|
||||
|
||||
const blacklistData = await AddressBlacklistModel.find({ project_id }, { address: 1 });
|
||||
for (const blacklistedData of blacklistData) {
|
||||
if (blacklistedData.address == ip) return false;
|
||||
|
||||
@@ -46,7 +46,7 @@ async function main() {
|
||||
const devContent = ecosystemContent
|
||||
.replace("$REDIS_URL$", `${REDIS_URL_PRODUCTION}`)
|
||||
.replace("$MONGO_CONNECTION_STRING$", `${DATABASE_CONNECTION_STRING_PRODUCTION}`)
|
||||
.replace("$DEV_MODE$", `true`);
|
||||
.replace("$DEV_MODE$", `false`);
|
||||
archive.append(Buffer.from(devContent), { name: '/ecosystem.config.js' });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user