142 Commits (83c74878df3f6edec4fca51e9cec299d2a1bb897)

Author SHA1 Message Date
Unknwon 83c74878df Merge pull request #2637 from Gibheer/ssh-publickeys
allow native and ssh-keygen public key check
8 years ago
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.
8 years ago
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.
8 years ago
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.
8 years ago
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 #2179 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.
8 years ago
Unknwon 58e004f7da Remove cache avatar support and add its tests 8 years ago
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
9 years ago
Unknwon 4e96a4a62b Merge pull request #2406 from bkcsoft/feature/markdown-custom-url-scheme
Feature/markdown custom url scheme
9 years ago
Unknwon 4848620594 #2229 adjust URL verbose depth for reverse proxy sub-path 9 years ago
miles@Oscar beefc53e59 Using https for gravatar 9 years ago
miles@Oscar 1becf01cfa Fixed gravatar url 9 years ago
Kim "BKC" Carlbäcker 3a9fd81f59 Custom URL-Schemas for Markdown 9 years ago
Pourya Daneshvar 863ff19e1f Fixed forgotten err variable assignment 9 years ago
Unknwon 7ef9a05588 #2179 use Go sub-repo ssh to verify public key content 9 years ago
Unknwon 53eb37d529 fix #1436 9 years ago
Unknwon 037a01c4e4 fix #2189 9 years ago
Unknwon 1e7e092992 #2103 Ability to map extensions for syntax highlighting in config 9 years ago
Unknwon 9cd16c5b12 #1692 add organization APIs 9 years ago
Unknwon 2a0bb1fa90 #1575 Limit repo creation 9 years ago
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
9 years ago
Unknwon 718d3ae258 #1943 Able to config fsck timeout 9 years ago
Unknwon 1cbd4c01fb #2115 more precise error message 9 years ago
Unknwon 3623b0927e remove tags redis and memcache 9 years ago
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.
9 years ago
Gibheer 56006da34b fix #1957 - disable version display
This allows the admin to disable the version information about gogs and
go in use in the footer.
9 years ago
Unknwon 18c841050b fix 1540 and experimental SSH server support 9 years ago
Unknwon a374751eb8 add Makefile 9 years ago
Unknwon 75aab86a8d fix problem with #1879 9 years ago
无闻 50058b3c6d Merge pull request #1871 from Gibheer/config_minimum_key_sizes
move minimum key sizes to config
9 years ago
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.
9 years ago
Unknwon 706b0f72e2 fix issue comment mention and autofix count when start 9 years ago
Unknwon 022820103d #1657 allow forcing all private repos 9 years ago
Unknwon 63e6e31271 add config and update locale 9 years ago
Unknwon 0fbb8c8826 New push to head repo of head branch: regenerate patch and retest apply 9 years ago
Unknwon 932dbccb67 fix import path, fix #1782 9 years ago
Unknwon 6dfee30bf0 #1602 Wrong commit order on issue page when pushing multiple commits 9 years ago
无闻 84c727ae66 Merge pull request #1693 from sapk/fix-admin-repo-new-ui
Fix admin repos new ui
9 years ago
Antoine GIRARD dfc16d0879 Fix admin repos new ui 9 years ago
Antoine GIRARD c98dad1cf3 New admin organization UI 9 years ago
Antoine GIRARD 14a1101139 New admin notice UI based on user list example 9 years ago
Unknwon 700ac8dea7 fix #1664 9 years ago
Unknwon 3fb1b6a608 drop oauth2 feature support 9 years ago
Unknwon e75fd2f783 simplify names 9 years ago
Unknwon 83e747bfda #697 and #1606 and new admin edit user UI 9 years ago
Unknwon 8e0a69f86a #697 disable captcha and new admin create user UI 9 years ago
Unknwon aff773f1b9 add tidb support 9 years ago
Unknwon be89802bd8 new admin user list UI 9 years ago
Unknwon 32c12d553c Able to use `GOGS_WORK_DIR` environment variable to specify work directory 9 years ago
Unknwon 83dc2468f5 finish initial version of pull request 9 years ago
Unknwon 90a6553c37 #1009 Config option for preserving hard line breaks 9 years ago