ユーザ用ツール

サイト用ツール


gogs

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
gogs [2020/04/12 02:41] – [ログインしないとユーザを表示しない] nabezogogs [2020/04/12 12:37] (現在) – [install] nabezo
行 21: 行 21:
 == apache proxy 設定 == == apache proxy 設定 ==
 一旦localhost:3000を/(root)に設定する 一旦localhost:3000を/(root)に設定する
-  #sites-enabled/000-default.conf +  #sites-enabled/git.conf 
-  ProxyPass         /  http://localhost:3000/ +  <location /> 
-  ProxyPassReverse  /  http://localhost:3000/+    ProxyPass         http://localhost:3000/ 
 +    ProxyPassReverse  http://localhost:3000/ 
 +  </location>
 ブラウザでmydom.com/に接続して/installページで設定しインストールを行う。 ブラウザでmydom.com/に接続して/installページで設定しインストールを行う。
 その際urlをmydom.com/git/とする。その後再度proxy設定を行う。 その際urlをmydom.com/git/とする。その後再度proxy設定を行う。
-  #sites-enabled/000-default.conf +  #sites-enabled/git.conf 
-  ProxyPass         /git/  http://localhost:3000/ +  <location /git/
-  ProxyPassReverse  /git/  http://localhost:3000/+    ProxyPass         http://localhost:3000/ 
 +    ProxyPassReverse  http://localhost:3000/ 
 +  </location>
  
 ===== 改造 ===== ===== 改造 =====
行 55: 行 59:
   - sudo systemctl start gogs   - sudo systemctl start gogs
  
 +===== backup =====
 +backup_gogs.sh
 +  cd /my/gogs
 +  tar -zcvf ./gogsrepos.tgz ./repos
 +
 +  
 ===== 使い方 ===== ===== 使い方 =====
   - プロジェクトの作成=リポジトリの作成   - プロジェクトの作成=リポジトリの作成
gogs.txt · 最終更新: 2020/04/12 12:37 by nabezo