kenanのブログ

闘病生活

Mobircのconfig.yamlの設定メモ

Mobircのconfig.yamlの設定メモ

configのsampleとの比較を含めて修正した点

- module: Authorizer::BasicAuth
config:
username: username
password: password

これは、ブラウザでアクセスしたときの認証。

- module: Component::IRCClient
config:
server: 127.0.0.1
port: 252322
nick: netwatcher
desc: Net Watcher
username: netwatcher
# password: netwatch
incode: utf-8

IRCClientの設定

server: localhost (自鯖なので)
port: 任意
nick: kenan とか

username:
password:
IRCサーバーに繋ぐのに認証が必要な場合(tiarraなので認証ありにしている)

incode: iso-2022-jp (これもtiarraの設定に依存)
UTF-8のが楽そうな気がする。
あとでtiarraの設定を見直し。

現在のtiarraエンコード設定メモ

Server:
server-in-encoding: utf8
server-out-encoding: utf8

client-in-encoding: jis
client-out-encoding: jis

stdout-encoding: utf8

IRCNet:
in-encoding: jis
out-encoding: jis

TwitterIrcGateway:
in-encoding: utf-8
out-encoding: utf-8

freenode:
in-encoding: utf-8
out-encoding: utf-8

Mobircの続き

- module: Component::HTTPD
config:
port:

mobircに外部から何番ポートでアクセスするか
これも任意。通常のIRCとかなら6666とか6667とかを使用してると思うのでそのあたり?
tiarra使ってるならそれ以外で適当にするといいかも

iPhoneからSafariで見る場合MobileよりMobileAjaxのが便利そうなのでそちらを使用したい。
画面表示の設定は

~/mobirc/assets/static
~/mobirc/lib/App/Mobirc/Web/Template

あたりのcss,javascript,perlを編集すればよさそう。


メモ:MacSafari開発モード

terminalでdefaults write com.apple.Safari IncludeDebugMenu -bool true