1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Protect nodePush with htaccess

This commit is contained in:
Tim Düsterhus 2013-02-02 16:57:52 +01:00
parent ea00d8b3a6
commit 9aa1943741
2 changed files with 8 additions and 7 deletions

View File

@ -0,0 +1 @@
deny from all

View File

@ -1,8 +1,8 @@
### ###
# node.js Pushserver for Tims Chat. # node.js Pushserver for Tims Chat.
# #
# @author Tim Düsterhus # @author Tim Düsterhus
# @copyright 2010-2013 Tim Düsterhus # @copyright 2010-2013 Tim Düsterhus
# @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode> # @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
# @package be.bastelstu.chat # @package be.bastelstu.chat
# @subpackage nodePush # @subpackage nodePush
@ -13,10 +13,10 @@ io = require 'socket.io'
net = require 'net' net = require 'net'
fs = require 'fs' fs = require 'fs'
config = require('../config.js') config = require '../config.js'
log = (message) -> log = (message) ->
console.log '[be.bastelstu.chat.nodePush] '+message console.log "[be.bastelstu.chat.nodePush] #{message}"
class Server class Server
constructor: () -> constructor: () ->
@ -24,8 +24,8 @@ class Server
console.error 'Please run me via bin/run.sh' console.error 'Please run me via bin/run.sh'
process.exit 1 process.exit 1
log 'Starting Pushserver for Tims Chat' log 'Starting Pushserver for Tims Chat'
log 'PID is ' + process.pid log "PID is #{process.pid}"
log 'Using port: ' + config.port log "Using port: #{config.port}"
@initUnixSocket() @initUnixSocket()
@initSocketIO() @initSocketIO()
@ -45,7 +45,7 @@ class Server
@socket.set 'log level', 1 @socket.set 'log level', 1
@socket.set 'browser client etag', true @socket.set 'browser client etag', true
@socket.set 'browser client minification', true @socket.set 'browser client minification', true
@socket.set 'browser client gzig', true @socket.set 'browser client gzip', true
@socket.configure 'development', (() -> @socket.configure 'development', (() ->
@socket.set 'log level', 3 @socket.set 'log level', 3