Initial Commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
What is Gitea?
|
||||
Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket, and GitLab. Gitea is a fork of Gogs. See the Gitea Announcement blog post to read about the justification for a fork.
|
||||
|
||||
Purpose
|
||||
The goal of this project is to provide the easiest, fastest, and most painless way of setting up a self-hosted Git service. With Go, this can be done with an independent binary distribution across all platforms and architectures that Go supports. This support includes Linux, macOS, and Windows, on architectures like amd64, i386, ARM, PowerPC, and others.
|
||||
@@ -0,0 +1,5 @@
|
||||
What is Gitea?
|
||||
Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket, and GitLab. Gitea is a fork of Gogs. See the Gitea Announcement blog post to read about the justification for a fork.
|
||||
|
||||
Purpose
|
||||
The goal of this project is to provide the easiest, fastest, and most painless way of setting up a self-hosted Git service. With Go, this can be done with an independent binary distribution across all platforms and architectures that Go supports. This support includes Linux, macOS, and Windows, on architectures like amd64, i386, ARM, PowerPC, and others.
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,26 @@
|
||||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
preserve_perms() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname ${NEW})/$(basename ${NEW} .new)"
|
||||
if [ -e ${OLD} ]; then
|
||||
cp -a ${OLD} ${NEW}.incoming
|
||||
cat ${NEW} > ${NEW}.incoming
|
||||
mv ${NEW}.incoming ${NEW}
|
||||
fi
|
||||
config ${NEW}
|
||||
}
|
||||
|
||||
preserve_perms etc/rc.d/rc.gitea.new
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,154 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Slackware build script for Gitea
|
||||
|
||||
# Copyright 2021 R3bel UK
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=gitea
|
||||
VERSION=${VERSION:-1.26.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo} # the "_SBo" is required
|
||||
|
||||
UIDGID=400
|
||||
if ! getent group $PRGNAM; then
|
||||
echo " You must have the \"$PRGNAM\" group to run this script."
|
||||
echo " # groupadd -g $UIDGID $PRGNAM"
|
||||
exit 1
|
||||
elif ! getent passwd $PRGNAM; then
|
||||
echo " You must have the \"$PRGNAM\" user to run this script."
|
||||
echo " # useradd -u $UIDGID -s /bin/bash -d /var/lib/gitea -g $PRGNAM $PRGNAM"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e # Exit on most errors
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $TMP/$PRGNAM-src-$VERSION
|
||||
mkdir $TMP/$PRGNAM-src-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-src-$VERSION.tar.gz
|
||||
cd $TMP/$PRGNAM-src-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
## Create the necessary directories
|
||||
mkdir -p $PKG/install
|
||||
mkdir -p $PKG/etc/gitea
|
||||
mkdir -p $PKG/etc/rc.d
|
||||
mkdir -p $PKG/usr/bin
|
||||
mkdir -p $PKG/var/log/gitea
|
||||
mkdir -p $PKG/var/lib/gitea
|
||||
mkdir -p $PKG/var/run/gitea
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
# Compile the application and install it into the $PKG directory
|
||||
#export $SLKCFLAGS
|
||||
cd $TMP/$PRGNAM-src-$VERSION
|
||||
export TAGS="bindata sqlite sqlite_unlock_notify"
|
||||
make clean-all
|
||||
make build
|
||||
|
||||
# Strip binaries and libraries - this can be done with 'make install-strip'
|
||||
# in many source trees, and that's usually acceptable if so, but if not,
|
||||
# use this:
|
||||
#find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
# | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
# Compress man pages
|
||||
# If the man pages are installed to /usr/share/man instead, you'll need to either
|
||||
# add the --mandir=/usr/man flag to configure or move them manually after the
|
||||
# make install process is run.
|
||||
#find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
#for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
# Compress info pages and remove the package's dir file
|
||||
# If no info pages are installed by the software, don't leave this in the script
|
||||
#rm -f $PKG/usr/info/dir
|
||||
#gzip -9 $PKG/usr/info/*.info*
|
||||
|
||||
# Copy program documentation into the package
|
||||
# The included documentation varies from one application to another, so be sure
|
||||
# to adjust your script as needed
|
||||
# Also, include the SlackBuild script in the documentation directory
|
||||
cp -a $TMP/$PRGNAM-src-$VERSION/CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md DCO LICENSE MAINTAINERS README.md README.zh-cn.md README.zh-tw.md SECURITY.md VERSION \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
# Copy the slack-desc (and a custom doinst.sh if necessary) into ./install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
## We need to patch some defaults in $TMP/$PRGNAM-src/custom/conf/app.example.ini before we copy this file into the package:
|
||||
patch -p1 $TMP/$PRGNAM-src-$VERSION/custom/conf/app.example.ini < $CWD/patches/app.ini.patch
|
||||
|
||||
## Copy files to the package
|
||||
cp $TMP/$PRGNAM-src-$VERSION/gitea $PKG/usr/bin
|
||||
cp $TMP/$PRGNAM-src-$VERSION/custom/conf/app.example.ini $PKG/etc/gitea/app.ini
|
||||
cp $CWD/rc.gitea $PKG/etc/rc.d/rc.gitea.new
|
||||
|
||||
## set file permissions
|
||||
|
||||
chown $PRGNAM:$PRGNAM $PKG/var/lib/gitea
|
||||
chown $PRGNAM:$PRGNAM $PKG/var/log/gitea
|
||||
chmod -R 750 $PKG/var/log/gitea
|
||||
chmod -R 750 $PKG/var/lib/gitea
|
||||
chown root:$PRGNAM $PKG/etc/gitea/app.ini
|
||||
chmod 770 $PKG/etc/gitea/app.ini
|
||||
chown $PRGNAM:$PRGNAM $PKG/var/run/gitea
|
||||
|
||||
# Make the package; be sure to leave it in $OUTPUT
|
||||
# If package symlinks need to be created during install *before*
|
||||
# your custom contents of doinst.sh runs, then add the -p switch to
|
||||
# the makepkg command below -- see makepkg(8) for details
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
PRGNAM="gitea"
|
||||
VERSION="1.14.0"
|
||||
HOMEPAGE="https://gitea.io"
|
||||
DOWNLOAD="https://dl.gitea.io/gitea/1.14.0/gitea-src-1.14.0.tar.gz"
|
||||
MD5SUM="92bff3b7890c223344ce7b07eec86151"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="go nodejs"
|
||||
MAINTAINER="Iain Wilson"
|
||||
EMAIL="slackbuilds@wilhall.net"
|
||||
@@ -0,0 +1,431 @@
|
||||
--- a/custom/conf/app.example.ini 2026-04-19 20:05:35.040000000 +0100
|
||||
+++ b/custom/conf/app.example.ini 2026-04-19 19:27:46.350000000 +0100
|
||||
@@ -41,14 +41,14 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
;; App name that shows in every page title
|
||||
-;APP_NAME = Gitea: Git with a cup of tea
|
||||
+APP_NAME = Gitea: Git with a cup of tea
|
||||
;;
|
||||
;; RUN_USER will automatically detect the current user - but you can set it here change it if you run locally
|
||||
-;RUN_USER =
|
||||
+RUN_USER = gitea
|
||||
;;
|
||||
;; Application run mode, affects performance and debugging: "dev" or "prod", default is "prod"
|
||||
;; Mode "dev" makes Gitea easier to develop and debug, values other than "dev" are treated as "prod" which is for production use.
|
||||
-;RUN_MODE = prod
|
||||
+RUN_MODE = prod
|
||||
;;
|
||||
;; The working directory, see the comment of AppWorkPath above
|
||||
;WORK_PATH =
|
||||
@@ -60,21 +60,21 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
;; The protocol the server listens on. One of "http", "https", "http+unix", "fcgi" or "fcgi+unix".
|
||||
-;PROTOCOL = http
|
||||
+PROTOCOL = http+unix
|
||||
;;
|
||||
;; Set the domain for the server.
|
||||
-;DOMAIN = localhost
|
||||
+DOMAIN = git.domain.example
|
||||
;;
|
||||
;; The AppURL is used to generate public URL links, defaults to "{PROTOCOL}://{DOMAIN}:{HTTP_PORT}/".
|
||||
;; Most users should set it to the real website URL of their Gitea instance when there is a reverse proxy.
|
||||
-;ROOT_URL =
|
||||
+ROOT_URL = https://git.domain.example
|
||||
;;
|
||||
-;; Controls how to detect the public URL. Most instances should use the "auto" behavior,
|
||||
+;; Controls how to detect the public URL.
|
||||
+;; Although it defaults to "legacy" (to avoid breaking existing users), most instances should use the "auto" behavior,
|
||||
;; especially when the Gitea instance needs to be accessed in a container network.
|
||||
-;; * legacy: (default <= 1.25) detect the public URL from "Host" header if "X-Forwarded-Proto" header exists, otherwise use "ROOT_URL".
|
||||
-;; * auto: (default >= 1.26) always use "Host" header, and also use "X-Forwarded-Proto" header if it exists. If no "Host" header, use "ROOT_URL".
|
||||
-;; * never: always use "ROOT_URL", never detect from request headers.
|
||||
-;PUBLIC_URL_DETECTION = auto
|
||||
+;; * legacy: detect the public URL from "Host" header if "X-Forwarded-Proto" header exists, otherwise use "ROOT_URL".
|
||||
+;; * auto: always use "Host" header, and also use "X-Forwarded-Proto" header if it exists. If no "Host" header, use "ROOT_URL".
|
||||
+;PUBLIC_URL_DETECTION = legacy
|
||||
;;
|
||||
;; For development purpose only. It makes Gitea handle sub-path ("/sub-path/owner/repo/...") directly when debugging without a reverse proxy.
|
||||
;; DO NOT USE IT IN PRODUCTION!!!
|
||||
@@ -86,7 +86,7 @@
|
||||
;; The address to listen on. Either a IPv4/IPv6 address or the path to a unix socket.
|
||||
;; If PROTOCOL is set to "http+unix" or "fcgi+unix", this should be the name of the Unix socket file to use.
|
||||
;; Relative paths will be made absolute against the _`AppWorkPath`_.
|
||||
-;HTTP_ADDR = 0.0.0.0
|
||||
+HTTP_ADDR = /var/run/gitea/gitea.sock
|
||||
;;
|
||||
;; The port to listen on for "http" or "https" protocol. Leave empty when using a unix socket.
|
||||
;HTTP_PORT = 3000
|
||||
@@ -175,15 +175,14 @@
|
||||
;; The port number the builtin SSH server should listen on, defaults to SSH_PORT
|
||||
;SSH_LISTEN_PORT =
|
||||
;;
|
||||
-;; Root path of SSH user directory for the system's standalone SSH server if Gitea is not using its builtin SSH server.
|
||||
-;; Default is the '.ssh' directory in the run user's home directory.
|
||||
+;; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.
|
||||
;SSH_ROOT_PATH =
|
||||
;;
|
||||
-;; Gitea will create an authorized_keys file by default when it is not using the builtin SSH server
|
||||
+;; Gitea will create a authorized_keys file by default when it is not using the internal ssh server
|
||||
;; If you intend to use the AuthorizedKeysCommand functionality then you should turn this off.
|
||||
;SSH_CREATE_AUTHORIZED_KEYS_FILE = true
|
||||
;;
|
||||
-;; Gitea will create an authorized_principals file by default when it is not using the builtin SSH server
|
||||
+;; Gitea will create a authorized_principals file by default when it is not using the internal ssh server
|
||||
;; If you intend to use the AuthorizedPrincipalsCommand functionality then you should turn this off.
|
||||
;SSH_CREATE_AUTHORIZED_PRINCIPALS_FILE = true
|
||||
;;
|
||||
@@ -239,6 +238,9 @@
|
||||
;; Indicate whether to check minimum key size with corresponding type
|
||||
;MINIMUM_KEY_SIZE_CHECK = false
|
||||
;;
|
||||
+;; Disable CDN even in "prod" mode
|
||||
+;OFFLINE_MODE = true
|
||||
+;;
|
||||
;; TLS Settings: Either ACME or manual
|
||||
;; (Other common TLS configuration are found before)
|
||||
;ENABLE_ACME = false
|
||||
@@ -461,11 +463,6 @@
|
||||
;; Name of cookie used to store authentication information.
|
||||
;COOKIE_REMEMBER_NAME = gitea_incredible
|
||||
;;
|
||||
-;; URL or path that Gitea should redirect users to *after* performing its own logout.
|
||||
-;; Use this, if needed, when authentication is handled by a reverse proxy or SSO.
|
||||
-;; For example: "/my-sso/logout?return=/my-sso/home"
|
||||
-;REVERSE_PROXY_LOGOUT_REDIRECT =
|
||||
-;;
|
||||
;; Reverse proxy authentication header name of user name, email, and full name
|
||||
;REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
|
||||
;REVERSE_PROXY_AUTHENTICATION_EMAIL = X-WEBAUTH-EMAIL
|
||||
@@ -506,6 +503,9 @@
|
||||
;; Password Hash algorithm, either "argon2", "pbkdf2", "scrypt" or "bcrypt"
|
||||
;PASSWORD_HASH_ALGO = pbkdf2
|
||||
;;
|
||||
+;; Set false to allow JavaScript to read CSRF cookie
|
||||
+;CSRF_COOKIE_HTTP_ONLY = true
|
||||
+;;
|
||||
;; Validate against https://haveibeenpwned.com/Passwords to see if a password has been exposed
|
||||
;PASSWORD_CHECK_PWN = false
|
||||
;;
|
||||
@@ -524,9 +524,6 @@
|
||||
;; Set the two-factor auth behavior.
|
||||
;; Set to "enforced", to force users to enroll into Two-Factor Authentication, users without 2FA have no access to repositories via API or web.
|
||||
;TWO_FACTOR_AUTH =
|
||||
-;;
|
||||
-;; The value of the X-Frame-Options HTTP header for HTML responses. Use "unset" to remove the header.
|
||||
-;X_FRAME_OPTIONS = SAMEORIGIN
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -599,17 +596,17 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Root path for the log files - defaults to "{AppWorkPath}/log"
|
||||
-;ROOT_PATH =
|
||||
+ROOT_PATH = /var/log/gitea
|
||||
;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Main Logger
|
||||
;;
|
||||
;; Either "console", "file" or "conn", default is "console"
|
||||
;; Use comma to separate multiple modes, e.g. "console, file"
|
||||
-MODE = console
|
||||
+MODE = file
|
||||
;;
|
||||
;; Either "Trace", "Debug", "Info", "Warn", "Error" or "None", default is "Info"
|
||||
-LEVEL = Info
|
||||
+LEVEL = Error
|
||||
;;
|
||||
;; Print Stacktrace with logs (rarely helpful, do not set) Either "Trace", "Debug", "Info", "Warn", "Error", default is "None"
|
||||
;STACKTRACE_LEVEL = None
|
||||
@@ -663,11 +660,11 @@
|
||||
;[log.console]
|
||||
;STDERR = false
|
||||
;;
|
||||
-;[log.file]
|
||||
+[log.file]
|
||||
;; Set the file_name for the logger. If this is a relative path this will be relative to ROOT_PATH
|
||||
-;FILE_NAME =
|
||||
+FILE_NAME = gitea.log
|
||||
;; This enables automated log rotate(switch of following options), default is true
|
||||
-;LOG_ROTATE = true
|
||||
+LOG_ROTATE = true
|
||||
;; Max size shift of a single file, default is 28 means 1 << 28, 256MB
|
||||
;MAX_SIZE_SHIFT = 28
|
||||
;; Segment log daily, default is true
|
||||
@@ -736,15 +733,15 @@
|
||||
;DISABLE_CORE_PROTECT_NTFS=false
|
||||
;; Disable the usage of using partial clones for git.
|
||||
;DISABLE_PARTIAL_CLONE = false
|
||||
-;; Set the similarity threshold passed to git commands via `--find-renames=<threshold>`.
|
||||
-;; Default is 50%, the same as git. Must be a integer percentage between 0% and 100%.
|
||||
-;DIFF_RENAME_SIMILARITY_THRESHOLD = 50%
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Git Operation timeout in seconds
|
||||
;[git.timeout]
|
||||
+;DEFAULT = 360
|
||||
;MIGRATE = 600
|
||||
;MIRROR = 300
|
||||
+;CLONE = 300
|
||||
+;PULL = 300
|
||||
;GC = 60
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -1158,15 +1155,15 @@
|
||||
;; Add co-authored-by and co-committed-by trailers if committer does not match author
|
||||
;ADD_CO_COMMITTER_TRAILERS = true
|
||||
;;
|
||||
+;; In addition to testing patches using the three-way merge method, re-test conflicting patches with git apply
|
||||
+;TEST_CONFLICTING_PATCHES_WITH_GIT_APPLY = false
|
||||
+;;
|
||||
;; Retarget child pull requests to the parent pull request branch target on merge of parent pull request. It only works on merged PRs where the head and base branch target the same repo.
|
||||
;RETARGET_CHILDREN_ON_MERGE = true
|
||||
;;
|
||||
;; Delay mergeable check until page view or API access, for pull requests that have not been updated in the specified days when their base branches get updated.
|
||||
;; Use "-1" to always check all pull requests (old behavior). Use "0" to always delay the checks.
|
||||
;DELAY_CHECK_FOR_INACTIVE_DAYS = 7
|
||||
-;;
|
||||
-;; Set the default value for "Delete pull request branch after merge by default" for new repositories
|
||||
-;DEFAULT_DELETE_BRANCH_AFTER_MERGE = false
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -1184,17 +1181,9 @@
|
||||
;[repository.release]
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;; Comma-separated list of allowed release attachment file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
|
||||
+;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
|
||||
;ALLOWED_TYPES =
|
||||
-;;
|
||||
-;; Number of releases that are displayed on release page
|
||||
;DEFAULT_PAGING_NUM = 10
|
||||
-;;
|
||||
-;; Max size of each release attachment file in megabytes. Defaults to 2GB
|
||||
-;FILE_MAX_SIZE = 2048
|
||||
-;;
|
||||
-;; Max number of release attachment files per upload. Defaults to 5
|
||||
-;MAX_FILES = 5
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -1296,6 +1285,9 @@
|
||||
;;
|
||||
;; headers to permit
|
||||
;HEADERS = Content-Type,User-Agent
|
||||
+;;
|
||||
+;; set X-FRAME-OPTIONS header
|
||||
+;X_FRAME_OPTIONS = SAMEORIGIN
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -1340,12 +1332,9 @@
|
||||
;; Leave it empty to allow users to select any theme from "{CustomPath}/public/assets/css/theme-*.css"
|
||||
;THEMES =
|
||||
;;
|
||||
-;; The icon theme for files (basic/material)
|
||||
+;; The icons for file list (basic/material), this is a temporary option which will be replaced by a user setting in the future.
|
||||
;FILE_ICON_THEME = material
|
||||
;;
|
||||
-;; The icon theme for folders (basic/material)
|
||||
-;FOLDER_ICON_THEME = basic
|
||||
-;;
|
||||
;; All available reactions users can choose on issues/prs and comments.
|
||||
;; Values can be emoji alias (:smile:) or a unicode emoji.
|
||||
;; For custom reactions, add a tightly cropped square image to public/assets/img/emoji/reaction_name.png
|
||||
@@ -1941,7 +1930,7 @@
|
||||
;COOKIE_NAME = i_like_gitea
|
||||
;;
|
||||
;; If you use session in https only: true or false. If not set, it defaults to `true` if the ROOT_URL is an HTTPS URL.
|
||||
-;COOKIE_SECURE =
|
||||
+COOKIE_SECURE = true
|
||||
;;
|
||||
;; Session GC time interval in seconds, default is 86400 (1 day)
|
||||
;GC_INTERVAL_TIME = 86400
|
||||
@@ -1986,12 +1975,12 @@
|
||||
;; or a custom avatar source, like: http://cn.gravatar.com/avatar/
|
||||
;GRAVATAR_SOURCE = gravatar
|
||||
;;
|
||||
-;; Deprecated, see Web UI Admin Panel -> Config -> Settings
|
||||
+;; This value will always be true in offline mode.
|
||||
;DISABLE_GRAVATAR = false
|
||||
;;
|
||||
;; Federated avatar lookup uses DNS to discover avatar associated
|
||||
;; with emails, see https://www.libravatar.org
|
||||
-;; Deprecated, see Web UI Admin Panel -> Config -> Settings
|
||||
+;; This value will always be false in offline mode or when Gravatar is disabled.
|
||||
;ENABLE_FEDERATED_AVATAR = false
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -2000,18 +1989,16 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
-;; Whether issue, pull-request and release attachments are enabled. Defaults to `true`
|
||||
-;; ALLOWED_TYPES/MAX_SIZE/MAX_FILES in this section only affect issue and pull-request attachments, not release attachments.
|
||||
-;; Release attachment has its own config options in [repository.release] section.
|
||||
+;; Whether issue and pull request attachments are enabled. Defaults to `true`
|
||||
;ENABLED = true
|
||||
;;
|
||||
-;; Comma-separated list of allowed issue/pull-request attachment file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
|
||||
+;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
|
||||
;ALLOWED_TYPES = .avif,.cpuprofile,.csv,.dmp,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.json,.jsonc,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.patch,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.webp,.xls,.xlsx,.zip
|
||||
;;
|
||||
-;; Max size of each issue/pull-request attachment file. Defaults to 100MB
|
||||
-;MAX_SIZE = 100
|
||||
+;; Max size of each file. Defaults to 2048MB
|
||||
+;MAX_SIZE = 2048
|
||||
;;
|
||||
-;; Max number of issue/pull-request attachment files per upload. Defaults to 5
|
||||
+;; Max number of files per upload. Defaults to 5
|
||||
;MAX_FILES = 5
|
||||
;;
|
||||
;; Storage type for attachments, `local` for local disk or `minio` for s3 compatible
|
||||
@@ -2286,22 +2273,6 @@
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;; Synchronize repository licenses
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;[cron.sync_repo_licenses]
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;; Whether to enable the job
|
||||
-;ENABLED = false
|
||||
-;; Whether to always run at least once at start up time (if ENABLED)
|
||||
-;RUN_AT_START = false
|
||||
-;; Whether to emit notice on successful execution too
|
||||
-;NOTICE_ON_SUCCESS = false
|
||||
-;; Time interval for job to run
|
||||
-;SCHEDULE = @annually
|
||||
-
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; Extended cron task - not enabled by default
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -2363,19 +2334,7 @@
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;; Update the '.ssh/authorized_principals' file
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;[cron.resync_all_sshprincipals]
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;ENABLED = false
|
||||
-;RUN_AT_START = false
|
||||
-;NOTICE_ON_SUCCESS = false
|
||||
-;SCHEDULE = @every 72h
|
||||
-
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;; Resynchronize git hooks of all repositories (pre-receive, update, post-receive, proc-receive, ...)
|
||||
+;; Resynchronize pre-receive, update and post-receive hooks of all repositories.
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;[cron.resync_all_hooks]
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -2483,70 +2442,6 @@
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;; Rebuild issue index
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;[cron.rebuild_issue_indexer]
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;ENABLED = false
|
||||
-;RUN_AT_START = false
|
||||
-;NO_SUCCESS_NOTICE = false
|
||||
-;SCHEDULE = @annually
|
||||
-
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;; Actions cron tasks
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;; Stop running tasks which haven't been updated for a long time
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;[cron.stop_zombie_tasks]
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;ENABLED = true
|
||||
-;RUN_AT_START = true
|
||||
-;NO_SUCCESS_NOTICE = false
|
||||
-;SCHEDULE = @every 5m
|
||||
-
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;; Stop running tasks which have running status and continuous updates but don't end for a long time
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;[cron.stop_endless_tasks]
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;ENABLED = true
|
||||
-;RUN_AT_START = true
|
||||
-;NO_SUCCESS_NOTICE = false
|
||||
-;SCHEDULE = @every 30m
|
||||
-
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;; Cancel jobs which haven't been picked up for a long time
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;[cron.cancel_abandoned_jobs]
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;ENABLED = true
|
||||
-;RUN_AT_START = false
|
||||
-;NO_SUCCESS_NOTICE = false
|
||||
-;SCHEDULE = @every 6h
|
||||
-
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;; Start cron based actions
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;[cron.start_schedule_tasks]
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;ENABLED = true
|
||||
-;RUN_AT_START = false
|
||||
-;NO_SUCCESS_NOTICE = false
|
||||
-;SCHEDULE = @every 1m
|
||||
-
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;[mirror]
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -2593,9 +2488,8 @@
|
||||
;[highlight.mapping]
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
-;; Extension mapping to highlight class, for example:
|
||||
-;; .toml = ini
|
||||
-;; .my-js = JavaScript
|
||||
+;; Extension mapping to highlight class
|
||||
+;; e.g. .toml=ini
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -2798,8 +2692,6 @@
|
||||
;LIMIT_SIZE_SWIFT = -1
|
||||
;; Maximum size of a Vagrant upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
|
||||
;LIMIT_SIZE_VAGRANT = -1
|
||||
-;; Maximum size of a Terraform state upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
|
||||
-;LIMIT_SIZE_TERRAFORM_STATE = -1
|
||||
;; Enable RPM re-signing by default. (It will overwrite the old signature ,using v4 format, not compatible with CentOS 6 or older)
|
||||
;DEFAULT_RPM_SIGN_ENABLED = false
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -2965,9 +2857,6 @@
|
||||
;ABANDONED_JOB_TIMEOUT = 24h
|
||||
;; Strings committers can place inside a commit message or PR title to skip executing the corresponding actions workflow
|
||||
;SKIP_WORKFLOW_STRINGS = [skip ci],[ci skip],[no ci],[skip actions],[actions skip]
|
||||
-;; Comma-separated list of workflow directories, the first one to exist
|
||||
-;; in a repo is used to find Actions workflow files
|
||||
-;WORKFLOW_DIRS = .gitea/workflows,.github/workflows
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -0,0 +1,92 @@
|
||||
--- a/custom/conf/app.example.ini 2026-04-19 18:40:44.063000000 +0100
|
||||
+++ b/custom/conf/app.example.ini 2026-04-19 19:27:46.350000000 +0100
|
||||
@@ -41,14 +41,14 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
;; App name that shows in every page title
|
||||
-APP_NAME = ; Gitea: Git with a cup of tea
|
||||
+APP_NAME = Gitea: Git with a cup of tea
|
||||
;;
|
||||
;; RUN_USER will automatically detect the current user - but you can set it here change it if you run locally
|
||||
-RUN_USER = ; git
|
||||
+RUN_USER = gitea
|
||||
;;
|
||||
;; Application run mode, affects performance and debugging: "dev" or "prod", default is "prod"
|
||||
;; Mode "dev" makes Gitea easier to develop and debug, values other than "dev" are treated as "prod" which is for production use.
|
||||
-;RUN_MODE = prod
|
||||
+RUN_MODE = prod
|
||||
;;
|
||||
;; The working directory, see the comment of AppWorkPath above
|
||||
;WORK_PATH =
|
||||
@@ -60,14 +60,14 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
;; The protocol the server listens on. One of "http", "https", "http+unix", "fcgi" or "fcgi+unix".
|
||||
-;PROTOCOL = http
|
||||
+PROTOCOL = http+unix
|
||||
;;
|
||||
;; Set the domain for the server.
|
||||
-;DOMAIN = localhost
|
||||
+DOMAIN = git.domain.example
|
||||
;;
|
||||
;; The AppURL is used to generate public URL links, defaults to "{PROTOCOL}://{DOMAIN}:{HTTP_PORT}/".
|
||||
;; Most users should set it to the real website URL of their Gitea instance when there is a reverse proxy.
|
||||
-;ROOT_URL =
|
||||
+ROOT_URL = https://git.domain.example
|
||||
;;
|
||||
;; Controls how to detect the public URL.
|
||||
;; Although it defaults to "legacy" (to avoid breaking existing users), most instances should use the "auto" behavior,
|
||||
@@ -86,7 +86,7 @@
|
||||
;; The address to listen on. Either a IPv4/IPv6 address or the path to a unix socket.
|
||||
;; If PROTOCOL is set to "http+unix" or "fcgi+unix", this should be the name of the Unix socket file to use.
|
||||
;; Relative paths will be made absolute against the _`AppWorkPath`_.
|
||||
-;HTTP_ADDR = 0.0.0.0
|
||||
+HTTP_ADDR = /var/run/gitea/gitea.sock
|
||||
;;
|
||||
;; The port to listen on for "http" or "https" protocol. Leave empty when using a unix socket.
|
||||
;HTTP_PORT = 3000
|
||||
@@ -596,17 +596,17 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Root path for the log files - defaults to "{AppWorkPath}/log"
|
||||
-;ROOT_PATH =
|
||||
+ROOT_PATH = /var/log/gitea
|
||||
;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Main Logger
|
||||
;;
|
||||
;; Either "console", "file" or "conn", default is "console"
|
||||
;; Use comma to separate multiple modes, e.g. "console, file"
|
||||
-MODE = console
|
||||
+MODE = file
|
||||
;;
|
||||
;; Either "Trace", "Debug", "Info", "Warn", "Error" or "None", default is "Info"
|
||||
-LEVEL = Info
|
||||
+LEVEL = Error
|
||||
;;
|
||||
;; Print Stacktrace with logs (rarely helpful, do not set) Either "Trace", "Debug", "Info", "Warn", "Error", default is "None"
|
||||
;STACKTRACE_LEVEL = None
|
||||
@@ -660,11 +660,11 @@
|
||||
;[log.console]
|
||||
;STDERR = false
|
||||
;;
|
||||
-;[log.file]
|
||||
+[log.file]
|
||||
;; Set the file_name for the logger. If this is a relative path this will be relative to ROOT_PATH
|
||||
-;FILE_NAME =
|
||||
+FILE_NAME = gitea.log
|
||||
;; This enables automated log rotate(switch of following options), default is true
|
||||
-;LOG_ROTATE = true
|
||||
+LOG_ROTATE = true
|
||||
;; Max size shift of a single file, default is 28 means 1 << 28, 256MB
|
||||
;MAX_SIZE_SHIFT = 28
|
||||
;; Segment log daily, default is true
|
||||
@@ -1930,7 +1930,7 @@
|
||||
;COOKIE_NAME = i_like_gitea
|
||||
;;
|
||||
;; If you use session in https only: true or false. If not set, it defaults to `true` if the ROOT_URL is an HTTPS URL.
|
||||
-;COOKIE_SECURE =
|
||||
+COOKIE_SECURE = true
|
||||
;;
|
||||
;; Session GC time interval in seconds, default is 86400 (1 day)
|
||||
;GC_INTERVAL_TIME = 86400
|
||||
@@ -0,0 +1,60 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Gitea startup script for Slackware Linux
|
||||
|
||||
NAME=gitea
|
||||
DAEMON=/usr/bin/$NAME
|
||||
PIDFILE=/var/run/gitea/${NAME}.pid
|
||||
PIDDIR=/var/run/gitea
|
||||
CONFIG=/etc/gitea/app.ini
|
||||
WORKPATH=/var/lib/gitea
|
||||
CUSTOMPATH=/var/lib/gitea/custom
|
||||
|
||||
gitea_start() {
|
||||
if [ ! -d $PIDDIR ]; then
|
||||
mkdir -p $PIDDIR
|
||||
chown $NAME:$NAME $PIDDIR
|
||||
fi
|
||||
|
||||
if [ -s $PIDFILE ]; then
|
||||
echo "Gitea appears to be already running?"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting Gitea ..."
|
||||
su $NAME -l -c "$DAEMON web -w $WORKPATH -C $CUSTOMPATH -c $CONFIG -P $PIDFILE > /dev/null 2>&1 &"
|
||||
}
|
||||
|
||||
gitea_stop() {
|
||||
if [ ! -s $PIDFILE ]; then
|
||||
echo "$PIDFILE does not exist or is empty."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PID=$(cat $PIDFILE)
|
||||
echo -n "Stopping Gitea ..."
|
||||
kill -TERM $(cat $PIDFILE)
|
||||
rm -f $PIDFILE
|
||||
echo " done"
|
||||
}
|
||||
|
||||
gitea_restart() {
|
||||
gitea_stop
|
||||
sleep 5
|
||||
gitea_start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
gitea_start
|
||||
;;
|
||||
stop)
|
||||
gitea_stop
|
||||
;;
|
||||
restart)
|
||||
gitea_restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
gitea: Gitea is a painless self-hosted Git service. It is similar to GitHub,
|
||||
gitea: Bitbucket, and GitLab. Gitea is a fork of Gogs.
|
||||
gitea:
|
||||
gitea: The goal of this project is to provide the easiest, fastest, and most painless
|
||||
gitea: way of setting up a self-hosted Git service.
|
||||
gitea: With Go, this can be done with an independent binary distribution across
|
||||
gitea: all platforms and architectures that Go supports.
|
||||
gitea: This support includes Linux, macOS, and Windows, on architectures like amd64,
|
||||
gitea: i386, ARM, PowerPC, and others.
|
||||
gitea:
|
||||
gitea:
|
||||
Reference in New Issue
Block a user