Compare commits
No commits in common. "master" and "v1.2.6" have entirely different histories.
10 changed files with 540 additions and 479 deletions
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
|
@ -1,2 +1 @@
|
||||||
github: [hexagon]
|
github: [hexagon]
|
||||||
ko_fi: hexagon_56k
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
FROM keymetrics/pm2:16-alpine
|
FROM node:16-alpine
|
||||||
COPY . /usr/src/app
|
COPY . /usr/src/app
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
RUN npm install --no-cache --production
|
RUN npm install --no-cache
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD [ "pm2-runtime", "start", "pm2.json" ]
|
RUN chmod +x /usr/src/app/docker-entrypoint.sh
|
||||||
|
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh", "npm", "start"]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
[](https://badge.fury.io/js/cryptalk)
|
[](https://badge.fury.io/js/cryptalk)
|
||||||
|
|
2
client/public/js/cryptalk.min.js
vendored
2
client/public/js/cryptalk.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,15 +1,23 @@
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
title: 'Claytonia Chat',
|
title: 'Cryptalk - Online',
|
||||||
|
|
||||||
ttl: 600000,
|
ttl: 600000,
|
||||||
|
|
||||||
motd: '<pre>\n\n' +
|
motd: '<pre>\n\n' +
|
||||||
' Welcome to Claytonia Chat \n' +
|
'▄████▄ ██▀███ ▓██ ██▓ ██▓███ ▄▄▄█████▓ ▄▄▄ ██▓ ██ ▄█▀ \n' +
|
||||||
|
'▒██▀ ▀█ ▓██ ▒ ██▒▒██ ██▒▓██░ ██▒▓ ██▒ ▓▒▒████▄ ▓██▒ ██▄█▒ \n' +
|
||||||
|
'▒▓█ ▄ ▓██ ░▄█ ▒ ▒██ ██░▓██░ ██▓▒▒ ▓██░ ▒░▒██ ▀█▄ ▒██░ ▓███▄░ \n' +
|
||||||
|
'▒▓▓▄ ▄██▒▒██▀▀█▄ ░ ▐██▓░▒██▄█▓▒ ▒░ ▓██▓ ░ ░██▄▄▄▄██ ▒██░ ▓██ █▄ \n' +
|
||||||
|
'▒ ▓███▀ ░░██▓ ▒██▒ ░ ██▒▓░▒██▒ ░ ░ ▒██▒ ░ ▓█ ▓██▒░██████▒▒██▒ █▄ \n' +
|
||||||
|
'░ ░▒ ▒ ░░ ▒▓ ░▒▓░ ██▒▒▒ ▒▓▒░ ░ ░ ▒ ░░ ▒▒ ▓▒█░░ ▒░▓ ░▒ ▒▒ ▓▒ \n' +
|
||||||
|
' ░ ▒ ░▒ ░ ▒░▓██ ░▒░ ░▒ ░ ░ ▒ ▒▒ ░░ ░ ▒ ░░ ░▒ ▒░ \n' +
|
||||||
|
'░ ░░ ░ ▒ ▒ ░░ ░░ ░ ░ ▒ ░ ░ ░ ░░ ░ \n' +
|
||||||
|
'░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ \n' +
|
||||||
|
'░ ░ ░ \n' +
|
||||||
|
' https://github.com/hexagon/cryptalk \n' +
|
||||||
|
' \n' +
|
||||||
' Tip of the day: /help \n' +
|
' Tip of the day: /help \n' +
|
||||||
' Public Room: /join Claytonia \n' +
|
|
||||||
' Public Key: /key Claytonia \n' +
|
|
||||||
' Everyone in the room must have the same key to decrypt messages. \n' +
|
|
||||||
'----------------------------------------------------------------------' +
|
'----------------------------------------------------------------------' +
|
||||||
'</pre>',
|
'</pre>',
|
||||||
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Cryptalk Node.js App
|
|
||||||
Documentation=https://github.com/Hexagon/cryptalk
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/bin/npm run start
|
|
||||||
WorkingDirectory=/home/cryptochat/cryptalk
|
|
||||||
Restart=always
|
|
||||||
RestartSec=10
|
|
||||||
Environment=NODE_ENV=production
|
|
||||||
Environment=PATH=/usr/bin
|
|
||||||
User=cryptochat
|
|
||||||
Group=cryptochat
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
11
docker-entrypoint.sh
Normal file
11
docker-entrypoint.sh
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# /usr/src/app/external-public kan be mounted as a volume on host to expose
|
||||||
|
# statics to be hosted by host nginx
|
||||||
|
if [ -d /usr/src/app/external-public ]; then
|
||||||
|
cp -R /usr/src/app/client/public/* /usr/src/app/external-public/
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "$@"
|
618
package-lock.json
generated
618
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cryptalk",
|
"name": "cryptalk",
|
||||||
"version": "1.2.9",
|
"version": "1.2.6",
|
||||||
"description": "Encrypted HTML5/Node.JS instant chat",
|
"description": "Encrypted HTML5/Node.JS instant chat",
|
||||||
"main": "server/server.js",
|
"main": "server/server.js",
|
||||||
"preferGlobal": true,
|
"preferGlobal": true,
|
||||||
|
|
11
pm2.json
11
pm2.json
|
@ -1,11 +0,0 @@
|
||||||
{
|
|
||||||
"name": "cryptalk",
|
|
||||||
"script": "server/server.js",
|
|
||||||
"instances": "1",
|
|
||||||
"env": {
|
|
||||||
"NODE_ENV": "development"
|
|
||||||
},
|
|
||||||
"env_production" : {
|
|
||||||
"NODE_ENV": "production"
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue