Jump to content
Toggle menu
  • 28 articles
  • 16 files
  • 17 users
  • 2.5K edits
Jon's Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Gogs: Difference between revisions

From Jon's Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Get the [https://packager.io/gh/pkgr/gogs/install?bid=432#ubuntu-14-04-gogs packager.io] auto-build package repo and install gogs:
'''''See also:''''' ''looks like it's been forked, so use [[Gitea]] instead.''
 
Get the [https://packager.io/gh/pkgr/gogs packager.io] auto-build package repository and install gogs:


  apt-get install gogs
  apt-get install gogs
Line 10: Line 12:
     error_log    /var/log/gogs/error.log;
     error_log    /var/log/gogs/error.log;
     server_name  git.youroutfit.com;
     server_name  git.youroutfit.com;
 
     proxy_set_header X-Real-IP  $remote_addr;
     proxy_set_header X-Real-IP  $remote_addr;
     location / {
     location / {
       proxy_pass http://localhost:3000;
       <nowiki>proxy_pass http://localhost:3000;</nowiki>
     }
     }
  }
  }


Then set it up with a PostgreSQL database (or MySQL if you have to) and whatever else, have a look at the [https://gogs.io/docs/advanced/configuration_cheat_sheet configuration docs] for reference:
Then set it up with a [[PostgreSQL]] database (or MySQL if you have to) and whatever else, have a look at the [https://gogs.io/docs/advanced/configuration_cheat_sheet configuration docs] for reference:


  sudo vi /etc/gogs/conf/app.ini
  sudo vi /etc/gogs/conf/app.ini

Latest revision as of 22:49, 14 December 2020

See also: looks like it's been forked, so use Gitea instead.

Get the packager.io auto-build package repository and install gogs:

apt-get install gogs

Point nginx at it:

server {
   listen        yourip:80;
   access_log    /var/log/gogs/access.log;
   error_log     /var/log/gogs/error.log;
   server_name   git.youroutfit.com;

   proxy_set_header X-Real-IP  $remote_addr;
   location / {
      proxy_pass http://localhost:3000;
   }
}

Then set it up with a PostgreSQL database (or MySQL if you have to) and whatever else, have a look at the configuration docs for reference:

sudo vi /etc/gogs/conf/app.ini