readme and small changes
This commit is contained in:
parent
aa4fe38dba
commit
e52e25c843
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/../../../../../:\home\mthoma\gitea_installer\.idea/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="PYTHON_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<settings>
|
||||||
|
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||||
|
<version value="1.0" />
|
||||||
|
</settings>
|
||||||
|
</component>
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/gitea_installer.iml" filepath="$PROJECT_DIR$/.idea/gitea_installer.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
89
README.md
89
README.md
|
|
@ -1,2 +1,89 @@
|
||||||
# gitea_installer
|
# gitea_installer
|
||||||
Install script for GITEA
|
Install script for GITEA on Ubuntu 20.04 LTS
|
||||||
|
|
||||||
|
This script pulls the newest version of gitea and install all requirements.
|
||||||
|
|
||||||
|
The following will be installed:
|
||||||
|
- GIT
|
||||||
|
- Nginx
|
||||||
|
- MariaDB
|
||||||
|
- Letencrypt (optional)
|
||||||
|
- UFW (optional)
|
||||||
|
|
||||||
|
## Use it ;-)
|
||||||
|
This installer script is for Ubuntu 20.04 LTS, other versions may work but not tested.
|
||||||
|
|
||||||
|
Available flags:
|
||||||
|
```
|
||||||
|
-f FQDN - Systemname of GITEA system
|
||||||
|
-e EMAIL - E-Mail for letsencrypt
|
||||||
|
-i IP - IPv4 address of this system
|
||||||
|
-p PASSWORD - Used for GITEA DB
|
||||||
|
-r SQLROOT - MySQL ROOT password
|
||||||
|
-l LETSENCRYPT - Use letsencrypt
|
||||||
|
-u UFW - Use UFW
|
||||||
|
```
|
||||||
|
|
||||||
|
## Install
|
||||||
|
```
|
||||||
|
wget https://github.com/lanbugs/gitea_installer/raw/main/gitea_installer.sh
|
||||||
|
chmod +x gitea_installer.sh
|
||||||
|
|
||||||
|
./gitea_installer.sh -f git.example.com -e admin@example.com -i 10.10.10.10 -p securepassword -r sqlrootpw -l -u
|
||||||
|
```
|
||||||
|
|
||||||
|
Finished screen:
|
||||||
|
```
|
||||||
|
--------------------------------------------------------------------------------------
|
||||||
|
GITEA 1.12.5 installed on system git.example.com
|
||||||
|
--------------------------------------------------------------------------------------
|
||||||
|
Mysql database : giteadb
|
||||||
|
Mysql user : gitea
|
||||||
|
Mysql password : securepassword
|
||||||
|
Mysql character set : utf8mb4
|
||||||
|
--------------------------------------------------------------------------------------
|
||||||
|
Mysql root user : root
|
||||||
|
Mysql root password : sqlrootpw
|
||||||
|
--------------------------------------------------------------------------------------
|
||||||
|
System is accessable via https://git.example.com
|
||||||
|
--------------------------------------------------------------------------------------
|
||||||
|
>>> You must finish the initial setup <<<
|
||||||
|
--------------------------------------------------------------------------------------
|
||||||
|
Site Title : Enter your organization name.
|
||||||
|
Repository Root Path : Leave the default /home/git/gitea-repositories.
|
||||||
|
Git LFS Root Path : Leave the default /var/lib/gitea/data/lfs.
|
||||||
|
Run As Username : git
|
||||||
|
SSH Server Domain : Use git.example.com
|
||||||
|
SSH Port : 22, change it if SSH is listening on other Port
|
||||||
|
Gitea HTTP Listen Port: 3000
|
||||||
|
Gitea Base URL : Use https://git.example.com/
|
||||||
|
Log Path : Leave the default /var/lib/gitea/log
|
||||||
|
--------------------------------------------------------------------------------------
|
||||||
|
Following firewall rules applied:
|
||||||
|
Status: active
|
||||||
|
|
||||||
|
To Action From
|
||||||
|
-- ------ ----
|
||||||
|
[ 1] 22/tcp ALLOW IN Anywhere
|
||||||
|
[ 2] 80/tcp ALLOW IN Anywhere
|
||||||
|
[ 3] 443/tcp ALLOW IN Anywhere
|
||||||
|
[ 4] 22/tcp (v6) ALLOW IN Anywhere (v6)
|
||||||
|
[ 5] 80/tcp (v6) ALLOW IN Anywhere (v6)
|
||||||
|
[ 6] 443/tcp (v6) ALLOW IN Anywhere (v6)
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------------
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
When the script finished you must complete the installation of gitea in the web UI.
|
||||||
|
|
||||||
|
## SQL settings
|
||||||
|
You should choose utf8mb4 encoding.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Common settings
|
||||||
|

|
||||||
|
|
||||||
|
## Additional settings
|
||||||
|

|
||||||
|
|
|
||||||
|
|
@ -14,13 +14,13 @@ UFW='false'
|
||||||
while getopts f:e:i:p:r:lu flag
|
while getopts f:e:i:p:r:lu flag
|
||||||
do
|
do
|
||||||
case "${flag}" in
|
case "${flag}" in
|
||||||
f) FQDN=${OPTARG};;
|
f) FQDN=${OPTARG};;
|
||||||
e) EMAIL=${OPTARG};;
|
e) EMAIL=${OPTARG};;
|
||||||
i) IP=${OPTARG};;
|
i) IP=${OPTARG};;
|
||||||
p) PASSWORD=${OPTARG};;
|
p) PASSWORD=${OPTARG};;
|
||||||
r) SQLROOT=${OPTARG};;
|
r) SQLROOT=${OPTARG};;
|
||||||
l) LETSENCRYPT='true';;
|
l) LETSENCRYPT='true';;
|
||||||
u) UFW='true';;
|
u) UFW='true';;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
@ -337,6 +337,7 @@ echo "--------------------------------------------------------------------------
|
||||||
echo " Mysql database : giteadb "
|
echo " Mysql database : giteadb "
|
||||||
echo " Mysql user : gitea "
|
echo " Mysql user : gitea "
|
||||||
echo " Mysql password : $PASSWORD "
|
echo " Mysql password : $PASSWORD "
|
||||||
|
echo " Mysql character set : utf8mb4"
|
||||||
echo "--------------------------------------------------------------------------------------"
|
echo "--------------------------------------------------------------------------------------"
|
||||||
echo " Mysql root user : root"
|
echo " Mysql root user : root"
|
||||||
echo " Mysql root password : $SQLROOT"
|
echo " Mysql root password : $SQLROOT"
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
Loading…
Reference in New Issue