Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vernemq
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stack
vernemq
Commits
11a47d8a
Commit
11a47d8a
authored
Oct 15, 2022
by
Chavee Issariyapat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add brifge config
parent
f8c75f16
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
bin/vernemq.sh
+40
-0
No files found.
bin/vernemq.sh
View file @
11a47d8a
...
...
@@ -109,6 +109,46 @@ EOF
echo
"max_message_size =
${
VERNEMQ_MAX_MESSAGE_SIZE
}
"
>>
/etc/vernemq/vernemq.conf
fi
if
env |
grep
-q
"VERNEMQ_BRIDGE"
;
then
echo
"plugins.vmq_bridge =
${
VERNEMQ_BRIDGE
}
"
>>
/etc/vernemq/vernemq.conf
echo
"vmq_bridge.tcp.br0 =
${
VERNEMQ_BRIDGE_URI
}
"
>>
/etc/vernemq/vernemq.conf
if
env |
grep
-q
"VERNEMQ_BRIDGE_CLEANSESSION"
;
then
echo
"vmq_bridge.tcp.br0.cleansession =
${
VERNEMQ_BRIDGE_CLEANSESSION
}
"
>>
/etc/vernemq/vernemq.conf
fi
echo
"vmq_bridge.tcp.br0.client_id = auto"
>>
/etc/vernemq/vernemq.conf
echo
"vmq_bridge.tcp.br0.username =
${
VERNEMQ_BRIDGE_USERNAME
}
"
>>
/etc/vernemq/vernemq.conf
echo
"vmq_bridge.tcp.br0.password =
${
VERNEMQ_BRIDGE_PASSWORD
}
"
>>
/etc/vernemq/vernemq.conf
if
env |
grep
-q
"VERNEMQ_BRIDGE_TOPIC1"
;
then
echo
"vmq_bridge.tcp.br0.topic.1 =
${
VERNEMQ_BRIDGE_TOPIC1
}
"
>>
/etc/vernemq/vernemq.conf
fi
if
env |
grep
-q
"VERNEMQ_BRIDGE_TOPIC2"
;
then
echo
"vmq_bridge.tcp.br0.topic.2 =
${
VERNEMQ_BRIDGE_TOPIC2
}
"
>>
/etc/vernemq/vernemq.conf
fi
if
env |
grep
-q
"VERNEMQ_BRIDGE_TOPIC3"
;
then
echo
"vmq_bridge.tcp.br0.topic.3 =
${
VERNEMQ_BRIDGE_TOPIC3
}
"
>>
/etc/vernemq/vernemq.conf
fi
if
env |
grep
-q
"VERNEMQ_BRIDGE_TOPIC4"
;
then
echo
"vmq_bridge.tcp.br0.topic.4 =
${
VERNEMQ_BRIDGE_TOPIC4
}
"
>>
/etc/vernemq/vernemq.conf
fi
fi
if
env |
grep
-q
"VERNEMQ_BRIDGE"
;
then
echo
"plugins.vmq_bridge =
${
VERNEMQ_BRIDGE
}
"
>>
/etc/vernemq/vernemq.conf
fi
echo
"########## End ##########"
>>
/etc/vernemq/vernemq.conf
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment