diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-01-15 05:05:27 +0800 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2019-01-14 16:05:27 -0500 |
commit | 270fa6d63b9a25021d9663bd6162f4933b7eb5ff (patch) | |
tree | eccb0176116ee5c8daa88a5fe68720578cb675e9 /modules | |
parent | 5a081c7a800bbd94a4f8313f3b379c2691c05510 (diff) | |
download | gitea-270fa6d63b9a25021d9663bd6162f4933b7eb5ff.tar.gz gitea-270fa6d63b9a25021d9663bd6162f4933b7eb5ff.zip |
Support CORS headers to git smart http protocol (#5719)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 88101937e9..2560c09107 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -201,15 +201,16 @@ var ( // Repository settings Repository = struct { - AnsiCharset string - ForcePrivate bool - DefaultPrivate string - MaxCreationLimit int - MirrorQueueLength int - PullRequestQueueLength int - PreferredLicenses []string - DisableHTTPGit bool - UseCompatSSHURI bool + AnsiCharset string + ForcePrivate bool + DefaultPrivate string + MaxCreationLimit int + MirrorQueueLength int + PullRequestQueueLength int + PreferredLicenses []string + DisableHTTPGit bool + AccessControlAllowOrigin string + UseCompatSSHURI bool // Repository editor settings Editor struct { @@ -237,15 +238,16 @@ var ( WorkInProgressPrefixes []string } `ini:"repository.pull-request"` }{ - AnsiCharset: "", - ForcePrivate: false, - DefaultPrivate: RepoCreatingLastUserVisibility, - MaxCreationLimit: -1, - MirrorQueueLength: 1000, - PullRequestQueueLength: 1000, - PreferredLicenses: []string{"Apache License 2.0,MIT License"}, - DisableHTTPGit: false, - UseCompatSSHURI: false, + AnsiCharset: "", + ForcePrivate: false, + DefaultPrivate: RepoCreatingLastUserVisibility, + MaxCreationLimit: -1, + MirrorQueueLength: 1000, + PullRequestQueueLength: 1000, + PreferredLicenses: []string{"Apache License 2.0,MIT License"}, + DisableHTTPGit: false, + AccessControlAllowOrigin: "", + UseCompatSSHURI: false, // Repository editor settings Editor: struct { |