annotate 611/growi.md @ 101:df9c0f3c58f9

backup 2022-04-20
author autobackup
date Wed, 20 Apr 2022 00:10:04 +0900
parents b6c284fd5ae4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 # growiの管理まわり
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 - Growi(これ)に関する情報
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
2
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
5 # かんたんに
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
6 - 学科の貸し出しVMで借りたubuntuの上でうごいているよ
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
7 - グローバルIPを持っててDNSも設定しているよ
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
8 - 動かしているのは[このリポジトリ](https://github.com/weseek/growi-docker-compose)のdocker-composeだよ
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
9
0
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 # 動いているサーバー
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 - 学科の基幹サーバーの1つ`balvenie`上で貸し出しVMの1つとして動いている
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 - 他には僕らが使っているdalmoreとかがあるタイプ
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 - なんとなくubuntuで動かしています
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 # インターネット周りの設定
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 - global ipを持って元気に配信している
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 - 一応長田先生(+総合情報センター)の許可はとった
e12992dca4a0 init from Growi
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 - 学科のDNSで`growi.cr`と`hackmd.cr`を設定している
2
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
19 - `growi`はAレコードで、`hackmd`はgrowiに対するCNAME
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
20 - どのドメインでアクセスしたかをnginx側で判断して、それぞれのサービスポートにリバースプロキシしてる
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
21
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
22 # 使っているもの
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
23 - nginx
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
24 - aptでいれて動かしている
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
25 - docker-compose
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
26 - このなかでgrowiのnode.jsやmongo db, hackmdのmariadb, elasticsearchとかが動いている
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
27
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
28 # サーバーログイン
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
29 - 鍵認証限定にしているので、 [/user/anatofuz]経由で鍵を送ればログインできる
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
30
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
31 # growiの更新
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
32 - [growiのdocker-composeのリポジトリ](https://github.com/weseek/growi-docker-compose)自体が更新されない限りは、growiのdocker imageを更新するだけでいい
b6c284fd5ae4 backup 2020-12-16
autobackup
parents: 0
diff changeset
33 - 具体的には`update.sh`を実行すると大体勝手にやってくれる