After updating to the latest version from the old one, strange things appeared.
- Authorization via SSH stopped working. Git requires a password.
- When I try to start the doctor, it finds nothing.
- Last problem:
Your ROOT_URL in app.ini is “localhost:3000”, it’s unlikely matching the site you are visiting.
Mismatched ROOT_URL config causes wrong URL links for web UI/mail content/webhook notification/OAuth2 sign-in.
app.ini
Спойлер
APP_NAME = WEB GIT
RUN_MODE = prod
RUN_USER = git
WORK_PATH = /data/gitea
[server]
LFS_START_SERVER = true
LFS_JWT_SECRET = jXirzzBP_c7OQMBsDWUaDVRRjZj5vjlDZIfnTeAKmC8
ROOT_URL = http s://git.xxx.com/
SSH_PORT = 222
[repository]
ROOT = /data/git/repositories
[repository.local]
LOCAL_COPY_PATH = /data/gitea/tmp/local-repo
[repository.upload]
TEMP_PATH = /data/gitea/uploads
[lfs]
APP_DATA_PATH = /data/gitea
DOMAIN = git.xxx.com
SSH_DOMAIN = git.xxx.com
HTTP_PORT = 3000
ROOT_URL = http s://git.xxx.com:3000/
DISABLE_SSH = false
SSH_PORT = 222
SSH_LISTEN_PORT = 222
LFS_START_SERVER = true
PATH = /data/git/lfs
LFS_JWT_SECRET = XXX
OFFLINE_MODE = false