...
|
...
|
@@ -2,7 +2,7 @@
|
2
|
2
|
#
|
3
|
3
|
# SSHCHAT INSTALLATION
|
4
|
4
|
#
|
5
|
|
-# NOTE: Instructions for a debian-based system with sysvinit and nginx
|
|
5
|
+# NOTE: Instructions for a debian-based system with sysvinit
|
6
|
6
|
|
7
|
7
|
# 0. Compile program (if it has already been compiled, do nothing)
|
8
|
8
|
|
...
|
...
|
@@ -19,8 +19,8 @@ adduser --system --group --gecos -,-,-,-,- --home /var/local/sshchat --shell /va
|
19
|
19
|
|
20
|
20
|
# 3. Add the directory for ssh login and data
|
21
|
21
|
|
22
|
|
-mkdir -p /var/local/sshchat/.ssh/../users/../run
|
23
|
|
-chown chat:chat /var/local/sshchat/.ssh /var/local/sshchat/users
|
|
22
|
+mkdir -p /var/local/sshchat/.ssh/../users/../invites/../run
|
|
23
|
+chown chat:chat /var/local/sshchat/.ssh /var/local/sshchat/users /var/local/sshchat/invites
|
24
|
24
|
chmod 700 /var/local/sshchat/.ssh
|
25
|
25
|
|
26
|
26
|
# 4. Make sshchatd an startable daemon. For sysvinit:
|
...
|
...
|
@@ -72,8 +72,4 @@ EOF
|
72
|
72
|
chmod 755 /etc/init.d/sshchatd
|
73
|
73
|
update-rc.d sshchatd defaults
|
74
|
74
|
|
75
|
|
-#5. Configure nginx so that chat.mydomain.com is redirected to sshchatd web port, using nginx as an SSL terminator
|
76
|
|
-
|
77
|
|
-echo "Please, configure nginx as reverse-proxy & ssl-terminator so that port 4798 is accesible in some URL"
|
78
|
|
-
|
79
|
75
|
# XXX: TODO
|