all the things
This commit is contained in:
6
www/forgejo/pkg/CVS/Entries
Normal file
6
www/forgejo/pkg/CVS/Entries
Normal file
@@ -0,0 +1,6 @@
|
||||
/DESCR/1.2/Wed Jan 17 21:05:38 2018//
|
||||
/MESSAGE/1.2/Sun Feb 28 17:21:40 2021//
|
||||
/PLIST/1.28/Tue Nov 8 11:17:16 2022//
|
||||
/forgejo.rc/1.7/Sun Mar 6 11:05:26 2022//
|
||||
/README/1.6/Sat Jan 7 17:31:01 2023//
|
||||
D
|
||||
1
www/forgejo/pkg/CVS/Repository
Normal file
1
www/forgejo/pkg/CVS/Repository
Normal file
@@ -0,0 +1 @@
|
||||
ports/www/forgejo/pkg
|
||||
1
www/forgejo/pkg/CVS/Root
Normal file
1
www/forgejo/pkg/CVS/Root
Normal file
@@ -0,0 +1 @@
|
||||
sdk@cvs.openbsd.org:/cvs
|
||||
2
www/forgejo/pkg/DESCR
Normal file
2
www/forgejo/pkg/DESCR
Normal file
@@ -0,0 +1,2 @@
|
||||
Gitea - Git with a cup of tea is a painless self-hosted Git service comparable
|
||||
to Github, Bitbucket or Gitlab.
|
||||
16
www/forgejo/pkg/MESSAGE
Normal file
16
www/forgejo/pkg/MESSAGE
Normal file
@@ -0,0 +1,16 @@
|
||||
If you are upgrading from ${PKGSTEM}-<1.7.0, update _forgejo user's shell and
|
||||
home directory:
|
||||
|
||||
# usermod -s /bin/sh _forgejo
|
||||
# usermod -d /var/forgejo _forgejo
|
||||
|
||||
If you are upgrading from ${PKGSTEM}-<1.7.1, please note the following changes:
|
||||
|
||||
* Configuration file location has changed from ${SYSCONFDIR}/${PKGSTEM}/conf/app.ini
|
||||
to ${SYSCONFDIR}/${PKGSTEM}/app.ini
|
||||
|
||||
* GITEA_CUSTOM directory location has changed from ${SYSCONFDIR}/${PKGSTEM}
|
||||
to ${LOCALSTATEDIR}/${PKGSTEM}/custom
|
||||
|
||||
* Default ROOT_PATH for logs has changed from ${LOCALSTATEDIR}/${PKGSTEM}/log
|
||||
to ${LOCALSTATEDIR}/log/${PKGSTEM}
|
||||
2194
www/forgejo/pkg/PLIST
Normal file
2194
www/forgejo/pkg/PLIST
Normal file
File diff suppressed because it is too large
Load Diff
2195
www/forgejo/pkg/PLIST.orig
Normal file
2195
www/forgejo/pkg/PLIST.orig
Normal file
File diff suppressed because it is too large
Load Diff
61
www/forgejo/pkg/README
Normal file
61
www/forgejo/pkg/README
Normal file
@@ -0,0 +1,61 @@
|
||||
+-----------------------------------------------------------------------
|
||||
| Running ${PKGSTEM} on OpenBSD
|
||||
+-----------------------------------------------------------------------
|
||||
|
||||
Initial configuration
|
||||
=====================
|
||||
By default forgejo listens on all configured IP addresses, TCP port 3000.
|
||||
If this is not wanted behavior, either adjust your pf(4) rules or change
|
||||
HTTP_ADDR/HTTP_PORT in ${SYSCONFDIR}/forgejo/app.ini.
|
||||
|
||||
To complete the initial configuration, point your browser to
|
||||
http://forgejo.example.com:3000 and press "Sign In". Usually you'll need to
|
||||
configure SSH Server Domain/Port, Gitea HTTP Listen Port/Base URL, E-Mail
|
||||
Settings and Administrator Account Settings.
|
||||
|
||||
On OpenBSD, initial forgejo configuration has the following restrictions:
|
||||
|
||||
- Self-Registration is disabled
|
||||
- Sign-In is required to view the content
|
||||
- E-Mail addresses are not shown
|
||||
- Server runs in "offline" mode, which means that external services such as
|
||||
Gravatar/OpenID are not used
|
||||
- New repositories have "private" checkbox checked by default
|
||||
- Password hash algorithm changed from pbkdf2 to argon2
|
||||
|
||||
Adjust these configuration settings according to your requirements.
|
||||
|
||||
Configuring HTTP access
|
||||
=======================
|
||||
By default forgejo serves HTTP requests on its own.
|
||||
It can also be configured to run behind HTTP proxy like relayd(8) or nginx(8).
|
||||
|
||||
Another option is to let OpenBSD httpd(8) serve HTTP(S) requests and pass it
|
||||
to forgejo via FastCGI protocol:
|
||||
|
||||
Example configuration for httpd(8) and forgejo communicating via FastCGI
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Relevant configuration directives in ${SYSCONFDIR}/httpd.conf:
|
||||
|
||||
# An HTTPS server using SSL/TLS
|
||||
server "forgejo.example.com" {
|
||||
listen on $ext_addr tls port 443
|
||||
tls certificate "/etc/ssl/forgejo.example.com.pem"
|
||||
tls key "/etc/ssl/private/forgejo.example.com.key"
|
||||
location "*" { fastcgi socket "/run/forgejo/forgejo.sock" }
|
||||
}
|
||||
|
||||
Relevant configuration directives in ${SYSCONFDIR}/forgejo/app.ini:
|
||||
|
||||
[server]
|
||||
PROTOCOL = fcgi+unix
|
||||
DOMAIN = forgejo.example.com
|
||||
ROOT_URL = https://%(DOMAIN)s/
|
||||
HTTP_ADDR = /var/www/run/forgejo/forgejo.sock
|
||||
LOCAL_ROOT_URL = %(ROOT_URL)s
|
||||
|
||||
Customizing forgejo
|
||||
=================
|
||||
For custom public files, templates, gitignores, labels, licenses and READMEs,
|
||||
please use ${LOCALSTATEDIR}/forgejo/custom directory.
|
||||
11
www/forgejo/pkg/gitea.rc
Normal file
11
www/forgejo/pkg/gitea.rc
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/ksh
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/forgejo"
|
||||
daemon_user="_forgejo"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_bg=YES
|
||||
rc_reload=NO
|
||||
|
||||
rc_cmd $1
|
||||
Reference in New Issue
Block a user