add app.ini setting

master
yikth 6 years ago
parent fff8ff1d3c
commit 2146b05ba1

@ -11,9 +11,6 @@ sudo adduser --disabled-login --gecos 'Gitea' git
``` ```
$ wget -O gitea https://dl.gitea.io/gitea/1.10.2/gitea-1.10.2-linux-amd64 $ wget -O gitea https://dl.gitea.io/gitea/1.10.2/gitea-1.10.2-linux-amd64
$ wget -O gitea https://dl.gitea.io/gitea/1.10.2/gitea-1.10.2-linux-arm-7
$ wget -O gitea https://dl.gitea.io/gitea/1.10.2/gitea-1.10.2-linux-arm-6 $ wget -O gitea https://dl.gitea.io/gitea/1.10.2/gitea-1.10.2-linux-arm-6
$ chmod +x gitea $ chmod +x gitea
``` ```
@ -48,11 +45,10 @@ $ sudo rm -rf /home/git
``` ```
************ ************
open browser to `http://192.168.0.113:3000/install` open browser to `http://192.168.10.113:3000/install`
install gitea configuration install gitea configuration
## Run Caddy service ## Run Caddy service
for x86 for x86
@ -81,7 +77,7 @@ $ sudo nano Caddyfile
``` ```
```text ```text
homenetyth.dlinkddns.com { homenetyth.ddnsking.com {
proxy / 127.0.0.1:3000 proxy / 127.0.0.1:3000
} }
``` ```
@ -123,14 +119,20 @@ pass : yikth@7572137
``` ```
Update Gitea config file `custom/conf/app.ini` Update Gitea config file `custom/conf/app.ini`
sample `home/git/custom/conf/app.ini`
```text ```text
[server] [server]
SSH_DOMAIN = example.com SSH_DOMAIN = homenetyth.ddnsking.com
HTTP_PORT = 3000 DOMAIN = localhost
ROOT_URL = https://example.com HTTP_PORT = 3000
ROOT_URL = http://192.168.10.113:3000/
DISABLE_SSH = false
SSH_PORT = 29419
``` ```
``` ```
$ restart gitea service $ restart gitea service

Loading…
Cancel
Save