ユーザ用ツール

サイト用ツール


gogs

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
最新のリビジョン両方とも次のリビジョン
gogs [2020/04/12 02:25] nabezogogs [2020/04/12 12:36] – [install] nabezo
行 26: 行 26:
 ブラウザで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>
  
 ===== 改造 ===== ===== 改造 =====
 ==== ログインしないとユーザを表示しない ==== ==== ログインしないとユーザを表示しない ====
-./gogs/templates/base/head.tmpl   +ヘッダメニューの"エクスプローラ"を非表示にするため 
-  {{if .IsLogged}}                                                                               +該当箇所を下記のようにIf.IsLoggedの判定を追加し、ログインしないと表示できないようにする 
-  <a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubURL}}/explore/repos">....</a> + 
-  {{end}}+  * ./gogs/templates/base/head.tmpl 
 + 
 +    {{If .IsLogged}} 
 +    <a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubURL}}/explore/repos">....</a> 
 +    {{end}} 
 + 
 +  * /home/git/gogs/templates/explore/users.tmpl 
 +  * /home/git/gogs/templates/explore/organizations.tmp 
 + 
 +    <div class="ui user list"> 
 +    {{If .IsLogged}}
  
  
行 45: 行 57:
   - 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