Skip to content

Commit 50e9acd

Browse files
authored
Merge pull request #121 from bitholla/develop
HollaEx Kit v1.4.0
2 parents 001649d + 9342bbc commit 50e9acd

File tree

41 files changed

+1115
-616
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1115
-616
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY ./db/models /app/db/models
1414

1515
EXPOSE 10011
1616

17-
RUN npm install -g nodemon && \
17+
RUN npm install -g nodemon --loglevel=error && \
1818
cd plugins && npm install --loglevel=error && \
1919
for d in ./*/ ; do (cd "$d" && npm install --loglevel=error); done && \
2020
cd /app/mail && npm install --loglevel=error

mail/templates/helpers/common.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const RTL = 'direction: rtl;';
5757

5858
const LOGO_TEMPLATE = ({ domain = DOMAIN, logoPath = LOGO_PATH() }) => `
5959
<div style="${styles.logo}">
60-
<a href="${domain}"><img src="${logoPath}" height="25"/></a>
60+
<a href="${domain}"><img src="${logoPath}" height="40"/></a>
6161
</div>
6262
`;
6363

@@ -73,20 +73,23 @@ const HEADER_TEMPLATE = ({ title, imagePath = '' }) => `
7373
</div>
7474
`;
7575

76+
const rtlLanguage = (lang) => (lang === 'fa' || lang === 'ar') ? RTL : '';
77+
7678
exports.TemplateEmail = (
7779
headerProps = {},
7880
content = '',
7981
language = DEFAULT_LANGUAGE(),
8082
domain = DOMAIN
8183
) => {
8284
const bodyStyle = styles.body.concat('');
85+
8386
return `
8487
<div style="${bodyStyle}">
8588
<div style="${styles.wrapper}">
8689
${LOGO_TEMPLATE(domain)}
8790
<div style="${styles.box_shadow}">
8891
${HEADER_TEMPLATE(headerProps)}
89-
<div style="${styles.container}">
92+
<div style="${styles.container}${rtlLanguage(language)}">
9093
${content}
9194
</div>
9295
${footerTemplate(language, domain)}

settings/secret

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ HOLLAEX_SECRET_PUBSUB_PASSWORD=
2323

2424
HOLLAEX_SECRET_DB_NAME=hollaex
2525
HOLLAEX_SECRET_DB_USERNAME=hollaex
26-
HOLLAEX_SECRET_DB_PASSWORD=5ddffa64126f1b11c4da0e8d70659997
26+
HOLLAEX_SECRET_DB_PASSWORD=
2727
HOLLAEX_SECRET_DB_HOST=$ENVIRONMENT_EXCHANGE_NAME-db
2828
HOLLAEX_SECRET_DB_PORT=5432
2929

templates/local/nginx/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ server {
3737

3838
server {
3939
listen 80;
40-
server_name <YOUR_SERVER_DOMAIN>; #Server domain
40+
server_name localhost; #Server domain
4141
access_log /var/log/nginx/hollaex.access.log main;
4242

4343
include /etc/nginx/conf.d/plugin*.conf;

0 commit comments

Comments
 (0)