Qwebirc
De Hack-it.org.
T2 (discuter | contributions) |
T2 (discuter | contributions) (→Aller plus loin) |
||
Ligne 37 : | Ligne 37 : | ||
mv /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar.out | mv /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar /usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar.out | ||
source : https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/255149 | source : https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/255149 | ||
+ | ====Nginx Proxy==== | ||
+ | * Nginx Side : | ||
+ | edit /etc/nginx/sites-enabled/webchat.network.org | ||
+ | <pre> | ||
+ | server { | ||
+ | server_name webchat.network.org; | ||
+ | access_log /home/web/log/qwebirc.access.log; | ||
+ | error_log /home/web/log/qwebirc.error.log; | ||
+ | location / { | ||
+ | proxy_pass http://127.0.0.1:8080; | ||
+ | proxy_set_header X-Real-IP $remote_addr; | ||
+ | proxy_set_header Host $host; | ||
+ | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
+ | /etc/init.d/nginx restart | ||
+ | * Qwebirc side : | ||
+ | edit /path/qwebirc/config.py | ||
+ | <pre> | ||
+ | BASE_URL = "http://webchat.network.org/" | ||
+ | FORWARDED_FOR_HEADER="x-forwarded-for" | ||
+ | FORWARDED_FOR_IPS=["127.0.0.1"] | ||
+ | </pre> | ||
+ | python /path/qwebirc/compile.py<br /> | ||
+ | kill & start run.py | ||
+ | |||
==Configuration de l'ircd== | ==Configuration de l'ircd== | ||
===Unreal=== | ===Unreal=== |