PKGBUILDs/gogs/default/README.md
Martchus fccb5f2a19 Import and adjust gogs from AUR
* Still testing, but seems to work basically
* Adjustments
  * Update to current version
  * Store config under /etc/gogs/app.ini
  * Store logs under /var/logs/gogs
  * Store repos under /var/lib/gogs/repos
  * Store static files under /usr/share/gogs
  * Store binary under /usr/bin
  * Format patches appropriately
  * Don't download dependencies with glade
2017-03-19 19:02:21 +01:00

46 lines
1.1 KiB
Markdown

# Gogs
PKGBUILD files for different versions of Gogs (Go Git Service).
## Open points
* ~~Systemd service support~~
* ~~better file structure~~
* ~~Publishing on https://aur.archlinux.org~~
* Test MariaDB and PostgreSQL installation
* ~~Test on armv6h (Raspberry Pi), armv7h (Cubieboard 2) and on x86_64~~
* Documentation for usage and configuration
## Install
```
$ tar -xvzf /<path to Tarball>/gogs-*.tar.gz
$ cd <package-name>
$ makepkg
$ pacman -U gogs-*.tgz
```
## Configuration
Config file is located under `/etc/gogs/app.ini`.
Enable and start systemd service:
```
$ systemctl enable gogs.service
$ systemctl start gogs.service
```
## Setup proxy in NGINX
Eg.
```
location ^~ /gogs/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:3000/;
}
```
## Logging
After start of the service every log entry is over journalctl displayable.
```
$ journalctl -f -u gogs.service
```