Commit Graph

291 Commits (280ebcbf7c761a212fb091634384847a38f25cb0)

Author SHA1 Message Date
Unknwon 4438b7793b Add new config option for builtin SSH server
Config option [server] SSH_LISTEN_PORT to the port the builtin SSH server will be listen.
It can be different from SSH_PORT which is supposed to be exposed in the clone URL.
This should solve the problem when user runs Gogs inside Docker container
and still want to use builtin SSH server.
Gibheer e721c5cf86 use StartSSHServer instead of DisableSSH
DisableSSH doesn't check the kind of ssh server to use, so that was
wrong. Use StartSSHServer instead.
Gibheer e3570ae45d seperate ssh constants from schema constants
The contants were placed in the same section as the scheme ones, which
may lead to confusion.
Gibheer 12403bdfb0 allow native and ssh-keygen public key check
This commit adds the possibibility to use either the native golang
libraries or ssh-keygen to check public keys. The check is adjusted
depending on the settings, so that only supported keys are let through.

This commit also brings back the blacklist feature, which was removed in
7ef9a05588. This allows to blacklist
algorythms or keys based on the key length. This works with the native
and the ssh-keygen way.

Because of  it also includes a way to adjust the path to
ssh-keygen and the working directory for ssh-keygen. With this,
sysadmins should be able to adjust the settings in a way, that SELinux
is okay with it. In the worst case, they can switch to the native
implementation and only loose support for ed25519 keys at the moment.
There are some other places which need adjustment to utilize the
parameters and the native implementation, but this sets the ground work.
Unknwon 58e004f7da Remove cache avatar support and add its tests
Andrey Nering e40d94bb4f Implementing the "theme-color" meta tag.
Used by Android >= 5.0 to make the top bar colored.

Reference: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
Unknwon 4e96a4a62b Merge pull request from bkcsoft/feature/markdown-custom-url-scheme
Feature/markdown custom url scheme
Unknwon 4848620594 adjust URL verbose depth for reverse proxy sub-path
miles@Oscar beefc53e59 Using https for gravatar
miles@Oscar 1becf01cfa Fixed gravatar url
Kim "BKC" Carlbäcker 3a9fd81f59 Custom URL-Schemas for Markdown
Pourya Daneshvar 863ff19e1f Fixed forgotten err variable assignment
Unknwon 7ef9a05588 use Go sub-repo ssh to verify public key content
Unknwon 53eb37d529 fix
Unknwon 037a01c4e4 fix
Unknwon 1e7e092992 Ability to map extensions for syntax highlighting in config
Unknwon 9cd16c5b12 add organization APIs
Unknwon 2a0bb1fa90 Limit repo creation
Adam Strzelecki b886fb4bf0 LOCAL_ROOT_URL for workers accessing web service
Local (DMZ) URL for gogs workers (such as ssh update) accessing web service. In
most cases you do not need to change default http://localhost:HTTP_PORT/. You
may need to alter it only if your ssh server node is not the same as http node,
eg. running behind proxy on different node than web server.

                     --- 80 public port -> 8080 -- web server node
                    /
    public proxy --<
                    \
                     --- 22 public port -> 10022 -- ssh server node

This option is not intended to be accessible via web GUI settings, since it is
unlikely someone needs to change it to somethings else than default
http://localhost:HTTP_PORT/ which should work for most of the cases.

But this should land into the documentation somewhere.

fixup
Unknwon 718d3ae258 Able to config fsck timeout
Unknwon 1cbd4c01fb more precise error message
Unknwon 3623b0927e remove tags redis and memcache
Gibheer e347736c9e fix old naming
This is the old naming of the variable and I forgot to fix it. It now
works and is tested.
Gibheer 56006da34b fix - disable version display
This allows the admin to disable the version information about gogs and
go in use in the footer.
Unknwon 18c841050b fix 1540 and experimental SSH server support
Unknwon a374751eb8 add Makefile
Unknwon 75aab86a8d fix problem with
无闻 50058b3c6d Merge pull request from Gibheer/config_minimum_key_sizes
move minimum key sizes to config
Gibheer b90b0c1191 move minimum key sizes to config
This moves the minimum key sizes into the config file, so that anyone
can modify the restrictions.
Unknwon 706b0f72e2 fix issue comment mention and autofix count when start
Unknwon 022820103d allow forcing all private repos
Unknwon 63e6e31271 add config and update locale
Unknwon 0fbb8c8826 New push to head repo of head branch: regenerate patch and retest apply
Unknwon 932dbccb67 fix import path, fix
Unknwon 6dfee30bf0 Wrong commit order on issue page when pushing multiple commits
无闻 84c727ae66 Merge pull request from sapk/fix-admin-repo-new-ui
Fix admin repos new ui
Antoine GIRARD dfc16d0879 Fix admin repos new ui
Antoine GIRARD c98dad1cf3 New admin organization UI
Antoine GIRARD 14a1101139 New admin notice UI based on user list example
Unknwon 700ac8dea7 fix
Unknwon 3fb1b6a608 drop oauth2 feature support
Unknwon e75fd2f783 simplify names
Unknwon 83e747bfda and and new admin edit user UI
Unknwon 8e0a69f86a disable captcha and new admin create user UI
Unknwon aff773f1b9 add tidb support
Unknwon be89802bd8 new admin user list UI
Unknwon 32c12d553c Able to use `GOGS_WORK_DIR` environment variable to specify work directory
Unknwon 83dc2468f5 finish initial version of pull request
Unknwon 90a6553c37 Config option for preserving hard line breaks
Unknwon 7714e792a4 minor fixes on
Unknwon 23f42d92c9 add webhook recent deliveries
Unknwon 4217c2333c new create webhook UI
无闻 a5e1ada474 Merge pull request from nice-software/wip/currentUser
Factor out function to get the current user
Unknwon b1696665bd make cron task configurable
Paolo Borelli 0d38794c7f Factor out function to get the current user
The same logic was duplicated in three places. Factor it
out so that we can add further fallbacks in a single place.
Unknwon 34f6cbfc2a finish attachments when create issue
Jqs7 16f74b62b9 custom avatar source
Unknwon 3e4cdccf6b milestone: create page
Unknwon cbb78b6a63 better wording
Unknwon d496d0cc4d replace path.Join
Unknwon 1490e862cc custom workDir function to handle speical case in Windows
Vladimir Vissoultchev 2cc050e21e Fix UTF-8 in upper-case, use ansi charset for all non UTF-8 encodings
Vladimir Vissoultchev 53bcf373c1 Allow explicit charset/codepage setting for ANSI source files to alleviate issue
Unknwon fa298a2c30 : Realtime webhooks
Unknwon 1ba837a055 new issue and label page
Unknwon 86dbda0b42 UI: basci issue list without filters
- fix isRead check
- fix paging
Unknwon c47afdff58 add config options for HELO
Tony Narlock 6a0fec77ea Allow an SSHDomain configuration option. Defaults to Domain, preserves legacy behavior
Unknwon c5c5aac7a5 typo fix
Unknwon aae74c793a add config option [service] DISABLE_MINIMUM_KEY_SIZE_CHECK
Unknwon caf7618ea6 Hide gravatar email field if gravatar is disabled (or offline mode)
Unknwon 2bb982dada : Remove footer ads/branding from default template
Unknwon e6cf83b8c0 Put default config into binary
Unknwon 49aeb87e44 : Windows Expects UNIX Directory Separator
Nolan Darilek 98674b2a21 registeration -> registration
无闻 3db80f2c55 Merge pull request from diseaz/mailer-client-cert
Use client certificate for SMTP over TLS
Unknwon e3dece1371 modules/setting: simple behave change in startup
Unknwon 7ccab9cd09 Merge branch 'dev' of github.com:gogits/gogs into access
Conflicts:
	gogs.go
	models/models.go
	models/user.go
	templates/.VERSION
	templates/org/home.tmpl
Unknwon f625665d8d modules/setting: add abs path check before add workdir prefix
Dmitry Azhichakov 3aaf292ba8 Fix "forcing" client certificate for SMTP
Dmitry Azhichakov 8a6c86644e New feature: SMTP connection may use client certificate.
New config keys in [mailer] section:
 - CERT_FILE: path to a certificate file.
 - KEY_FILE: path to a key file.
Unknwon 7e7160eefd first pass work on migration
Unknwon d02e45f985 better naming on
Unknwon 6a23252edc able to allow insecure certification of webhook for
Unknwon 3cc04682c5 modules/setting: mirror path issue
无闻 cd0ee35b3f Merge pull request from phsmit/conf_on_cli
Add option to provide configuration file on command line
Unknwon 2a2596fe61 able to disable SSH for
Unknwon 216683004e code fix for , and work for
Raphael Randschau 79f3281548 Add ShowRegistrationButton configuration option
Peter Smit 1ab09e4f1b Add option to provide configuration file on command line
Unknwon b293b6eaa6 cmd: CMD option for port number of `gogs web` to prevent first time run conflict
- routers: use new binding convention to simplify code
- templates: able to set HTTP port number in install page
Unknwon c73e9057ae Optmize git-fsck options and fix
Unknwon bd555551ce fix
Unknwon 81a44e4cd0 fix API changes
Peter 87be137b88 Rewrite of SendMail function
The SendMail function is rewritten and has the following new functionality:
 - It is optional to skip verification of keys. The config option SKIP_VERIFY is added
 - If the port is 465, or ending on 465, the TLS(/SSL) connection is started first.
Joseph Crail 39c068400e Fix spelling errors in comments.
Unknwon 069486d169 fix
Unknwon d75013a0e8 fix
Unknwon d6132aaa88 fix oauth2
Unknwon 54d25c13d7 Fix
Unknwon ef275ebf62 more on change avatar
Unknwon 55dfe2c978 custom avatar upload
Unknwon 32dcaefafa fox
Unknwon 340a4595dd support duoshuo mirror of gravatar
Unknwon 0c5ba4573a fix session API broken and SQL pretection
Andy Leap 5094e9501c Add basic FCGI support
Unknwon 64c68220d2 Fix
Unknwon 1273b3d3a9 Support custom robots.txt
Unknwon b72d7c201a Mirror bug fix
Unknwon 4a01bb8fa4 Mirror bug fix
Martin van Beurden 976f1486e0 Set cookiepath to AppSubUrl
Unknwon 7ba9257a7f Add suburl support
Martin van Beurden 0055cbd365 Allow Gogs to run from a suburl behind a reverse proxy. e.g. http://mydomain.com/gogs/
Conflicts:
	modules/setting/setting.go

Conflicts:
	templates/repo/release/list.tmpl
	templates/user/dashboard/dashboard.tmpl

Conflicts:
	routers/repo/setting.go
Unknwon 8a09256941 Mirror fix and fix
lunnyxiao 061a879cea Merge branch 'dev' of github.com:gogits/gogs into dev
Conflicts:
	conf/app.ini
lunnyxiao ed84adb679 toutf8 improved & add max git diff lines
Unknown ebb4f1b78c Work and
Mathieu Gagnon 3549fb0ea8 Remove APP_LOGO setting
Unknwon 9bc63bda7d Finish all new admin pages.
Unknwon f2c263c54f fix
Unknwon b95e78f7e6 Mirro fix on PR
无闻 568c9b353e Merge pull request from nuss-justin/issue/281
Fix . Add mouse-over precise time and on-click switch listener.
Unknwon 7bbf644dd5 Convert captcha, cache, csrf as middlewares
Justin Nuß 91480f3791 Merge branch 'dev' of https://github.com/gogits/Gogs into issue/281
Conflicts:
	modules/base/tool.go
Unknwon 8dd07c0ddd New UI merge in progress
Justin Nuß 835e85b5ce Fix . Add mouse-over precise time and on-click switch listener.
Unknwon c20f5dc2ea Merge branch 'dev' of github.com:gogits/gogs into dev
Unknwon a41a1fe60d Mirror fix
Justin Nuß 4d702eb345 Allow disabling uploads
Justin Nuß bfe5b86004 Add file upload for attachments
Justin Nuß 4617bef895 WIP: Allow attachments for comments
Unknown b2801a2e98 Fix
niphor 29a40c97f3 RepoRootPath must be absolute path
Unknown ad5ec45dd6 Fix
Unknown 6c8d630bef Add database log adapter
Unknown a3e1383cac Add gogs fix location command
Unknown 302c863cda Fix
Unknown 63baf76ab2 Fix
Unknown ab13a29cb5 Fix
Unknown ff48aeddef Little bug fix
Unknown 688ec6ecbd Fixed