mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 18:54:52 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
77adbce1a1
@ -6,6 +6,13 @@ node_js:
|
|||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- google-chrome
|
||||||
|
packages:
|
||||||
|
- google-chrome-stable
|
||||||
|
- google-chrome-beta
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update
|
- sudo apt-get update
|
||||||
- sudo apt-get install -y libappindicator1 fonts-liberation
|
- sudo apt-get install -y libappindicator1 fonts-liberation
|
||||||
@ -18,7 +25,6 @@ before_script:
|
|||||||
- export CHROME_BIN=/usr/bin/google-chrome
|
- export CHROME_BIN=/usr/bin/google-chrome
|
||||||
- "export DISPLAY=:99.0"
|
- "export DISPLAY=:99.0"
|
||||||
- "sh -e /etc/init.d/xvfb start"
|
- "sh -e /etc/init.d/xvfb start"
|
||||||
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
|
|
||||||
- sleep 5 # give xvfb some time to start
|
- sleep 5 # give xvfb some time to start
|
||||||
- gulp bundle
|
- gulp bundle
|
||||||
- npm start &
|
- npm start &
|
||||||
|
@ -49,7 +49,12 @@ module.exports = function(config) {
|
|||||||
// start these browsers
|
// start these browsers
|
||||||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
||||||
browsers: ['Chrome'],
|
browsers: ['Chrome'],
|
||||||
|
customLaunchers: {
|
||||||
|
Chrome_without_sandbox: {
|
||||||
|
base: 'Chrome',
|
||||||
|
flags: ['--no-sandbox'] // with sandbox it fails under Docker
|
||||||
|
}
|
||||||
|
},
|
||||||
// Continuous Integration mode
|
// Continuous Integration mode
|
||||||
// if true, Karma captures browsers, runs the tests and exits
|
// if true, Karma captures browsers, runs the tests and exits
|
||||||
singleRun: false,
|
singleRun: false,
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node index.js",
|
"start": "node index.js",
|
||||||
"prod": "forever start -c \"npm start\" ./",
|
"prod": "npm run bundle && forever start -c \"npm start\" ./",
|
||||||
"dev": "npm run bundle && gulp start",
|
"dev": "npm run bundle && gulp start",
|
||||||
"bundle": "gulp bundle",
|
"bundle": "gulp bundle",
|
||||||
"test": "npm run bundle && gulp test",
|
"test": "npm run bundle && gulp test",
|
||||||
|
24
readme.md
24
readme.md
@ -5,10 +5,11 @@
|
|||||||
Simple encrypted web chat. Powered by [socket.io](http://socket.io) and the [web cryptography API](https://developer.mozilla.org/en-US/docs/Web/API/Window/crypto).
|
Simple encrypted web chat. Powered by [socket.io](http://socket.io) and the [web cryptography API](https://developer.mozilla.org/en-US/docs/Web/API/Window/crypto).
|
||||||
|
|
||||||
### Running a local copy
|
### Running a local copy
|
||||||
Starting at version **1.5.7**, you can run a local copy of Darkwire via Docker through dockerhub.
|
You can run a local copy of Darkwire via Docker through dockerhub. Versions are strictly controlled, [we recommend using the latest tagged version](https://github.com/seripap/darkwire.io/releases/latest) as older versions may pose some security issues.
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker run -d -p 80:3000 --name dakrwire darkwire/1.5.7
|
# Version numbers can be found in latest releases
|
||||||
|
$ docker run -d -p 80:3000 --name dakrwire darkwire/${VERSION_NUMBER}
|
||||||
```
|
```
|
||||||
|
|
||||||
Docker is now running on local port 80.
|
Docker is now running on local port 80.
|
||||||
@ -23,21 +24,18 @@ $ docker run -p 80:3000 darkwire
|
|||||||
Darkwire is now online on local port 80. Default container port is 3000.
|
Darkwire is now online on local port 80. Default container port is 3000.
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
# Get latest version of NodeJS for ES2015 support
|
# Using node@v6.7
|
||||||
npm install -g n
|
$ npm install
|
||||||
n stable
|
|
||||||
npm install
|
|
||||||
|
|
||||||
# Starting dev environment
|
# Starting dev environment
|
||||||
npm run dev
|
$ npm run dev
|
||||||
|
|
||||||
# Running tests locally
|
|
||||||
brew install chromedriver
|
|
||||||
npm test
|
|
||||||
|
|
||||||
|
# Running tests locally (Mac)
|
||||||
|
$ brew install chromedriver
|
||||||
|
$ npm test
|
||||||
# Start a local instance of darkwire
|
# Start a local instance of darkwire
|
||||||
npm run bundle
|
$ npm run bundle
|
||||||
npm start
|
$ npm start
|
||||||
|
|
||||||
# Changing ports, default is 3000
|
# Changing ports, default is 3000
|
||||||
port=3000 npm start
|
port=3000 npm start
|
||||||
|
@ -13,7 +13,7 @@ import Room from './room';
|
|||||||
let usage = 0;
|
let usage = 0;
|
||||||
|
|
||||||
const $CONFIG = {
|
const $CONFIG = {
|
||||||
port: process.env.port || 3000
|
port: process.env.port || process.env.PORT || 3000
|
||||||
};
|
};
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
@ -117,6 +117,7 @@
|
|||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
<h4 class="modal-title">Welcome to darkwire.io v{{APP.version}}</h4>
|
<h4 class="modal-title">Welcome to darkwire.io v{{APP.version}}</h4>
|
||||||
|
<small>TOR Mirror: <a href="http://darkwirevqhjfmla.onion" target="_blank">http://darkwirevqhjfmla.onion</a></small>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<h6>We've placed you in a new chat room</h6>
|
<h6>We've placed you in a new chat room</h6>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user