[x]
):I can provide direct access to the Raspberry;
I have installed and running from binary _with_ an NGINX proxy (HTTP/HTTPS->HTTPS->Gitea), everything works ok except somewhat the most important thing:
*I cannot upload more than 5 files in Google Chrome
*I cannot upload anything larger than 3MB
*The configuration file is loaded correctly, as I have removed the cfg file and it went to "First Install", and port works (60005)
This is possible an arm-6 code issue?
$gitea/custom/conf/app.ini
[code]
APP_NAME = Gitea Distributed Version Control System
RUN_USER = git
RUN_MODE = prod
[attachment]
ENABLE = true
ALLOWED_TYPES = / #Consider this the "all files" as github bugs
MAX_SIZE = 20
MAX_FILES = 1000
[security]
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1MjEzMTM4NzR9.fPSFUhfJC0tSGguvpPb1DER1uvLFY-dZ3iY1yFbjX1o
INSTALL_LOCK = true
SECRET_KEY =
[database]
DB_TYPE = mysql
HOST = 127.0.0.1:60006
NAME = Gitea
USER = gitea
PASSWD = H2U0Evu6Osca2lPL
SSL_MODE = disable
PATH = data/gitea.db
[repository]
ROOT = /home/git/gitea-repositories
[server]
SSH_DOMAIN = localhost
DOMAIN = localhost
HTTP_PORT = 60005
ROOT_URL = http://localhost:60005/
DISABLE_SSH = false
SSH_PORT = 60000
LFS_START_SERVER = true
LFS_CONTENT_PATH = /home/git/Gitea/data/lfs
LFS_JWT_SECRET =
OFFLINE_MODE = false
[mailer]
ENABLED = false
[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = false
ENABLE_CAPTCHA = false
REQUIRE_SIGNIN_VIEW = false #If false, anonymous can see public reps
DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = example
[picture]
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = true
[openid]
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = true
[session]
PROVIDER = file
[log]
MODE = file
LEVEL = Info
ROOT_PATH = /home/git/Gitea/log
[/code]
I did that already, I've tried for many hours different "attachment" positions, as I have included the configuration file (and deleted just to be sure Gitea is loading it, as I wrote it went to fresh install; replaced back and settings back). Restart every time, even reboot to be sure.
... fixed ENABLE, to ENABLED, no effects as true is default
[attachment]
ENABLED = true
ALLOWED_TYPES = /
MAX_SIZE = 20
MAX_FILES = 1000
...
Even tried attachments but doesn't work.
Oh well, I found the problem!!!
Taken from https://github.com/go-gitea/gitea/blob/master/custom/conf/app.ini.sample
Documentation is somewhat misleading and doesn't point to this, browser settings are another configuration topic:
[repository.upload]
; Whether repository file uploads are enabled. Defaults to true
ENABLED = true
; Path for uploads. Defaults to data/tmp/uploads
(tmp gets deleted on gitea restart)
TEMP_PATH = data/tmp/uploads
; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type
ALLOWED_TYPES =
; Max size of each file in MB. Defaults to 3MB
FILE_MAX_SIZE = 3
; Max number of files per upload. Defaults to 5
MAX_FILES = 5
Most helpful comment
Oh well, I found the problem!!!
Taken from https://github.com/go-gitea/gitea/blob/master/custom/conf/app.ini.sample
Documentation is somewhat misleading and doesn't point to this, browser settings are another configuration topic:
[repository.upload]
; Whether repository file uploads are enabled. Defaults to
true
ENABLED = true
; Path for uploads. Defaults to
data/tmp/uploads
(tmp gets deleted on gitea restart)TEMP_PATH = data/tmp/uploads
; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type
ALLOWED_TYPES =
; Max size of each file in MB. Defaults to 3MB
FILE_MAX_SIZE = 3
; Max number of files per upload. Defaults to 5
MAX_FILES = 5