Files
Gogs/internal/conf/testdata/custom.ini
ᴜɴᴋɴᴡᴏɴ 8796df8218 conf: add unit tests (#5954)
* conf: add tests for utils.go

* conf: add tests for static.go

* mock os/exec

* Run tests on Windows

* appveyor: fix gcc not found

* computed: add unit tests

* log: add unit tests

* log: fix tests on Windows

* conf: add some tests

* Finish adding tests

* Cover more cases

* Add tests for testutil

* Add more tests
2020-02-29 22:24:20 +08:00

47 lines
819 B
INI

APP_NAME = Testing
RUN_MODE = test
[server]
ROOT_URL = http://localhost:3080/
APP_DATA_PATH = /tmp/data
SSH_ROOT_PATH = /tmp
SSH_KEY_TEST_PATH = /tmp/ssh-key-test
MINIMUM_KEY_SIZE_CHECK = true
LANDING_PAGE = explore
[repository]
ROOT = /tmp/gogs-repositories
[repository.upload]
TEMP_PATH = /tmp/uploads
[database]
DB_TYPE = sqlite
PASSWD = 12345678
PATH = /tmp/gogs.db
[security]
REVERSE_PROXY_AUTHENTICATION_USER=X-FORWARDED-FOR
[email]
ENABLED = true
PASSWD = 87654321
[auth]
ACTIVE_CODE_LIVE_MINUTES = 10
RESET_PASSWD_CODE_LIVE_MINUTES = 10
REGISTER_EMAIL_CONFIRM = true
ENABLE_CAPTCHA = true
ENABLE_NOTIFY_MAIL = true
[session]
GC_INTERVAL_TIME = 10
SESSION_LIFE_TIME = 10
[attachment]
PATH = /tmp/attachments
[picture]
AVATAR_UPLOAD_PATH = /tmp/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = /tmp/repo-avatars